1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 18:31:14 +00:00
redmine/app/views/enumerations/index.html.erb
Marius Balteanu ffce07e785 Start working on replacing old icons with SVG icons (#23980):
* Introduces IconsHelper with methods to render SVG icon from a sprite file.
* Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)).
* Replaces specific icons with new SVG icons.
* Temporarily keep all old CSS icon definitions for backard compatibility.



git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-29 21:46:40 +00:00

40 lines
1.2 KiB
Plaintext

<h2><%=l(:label_enumerations)%></h2>
<% Enumeration.get_subclasses.each do |klass| %>
<h3><%= l(klass::OptionName) %></h3>
<% enumerations = klass.shared %>
<p><%= link_to icon_with_label('add', l(:label_enumeration_new)), new_enumeration_path(:type => klass.name), :class => 'icon icon-add' %></p>
<% if enumerations.any? %>
<table class="list enumerations"><thead>
<tr>
<th><%= l(:field_name) %></th>
<th><%= l(:field_is_default) %></th>
<th><%= l(:field_active) %></th>
<th></th>
</tr></thead>
<% enumerations.each do |enumeration| %>
<tr>
<td class="name"><%= link_to enumeration, edit_enumeration_path(enumeration) %></td>
<td class="tick"><%= checked_image enumeration.is_default? %></td>
<td class="tick"><%= checked_image enumeration.active? %></td>
<td class="buttons">
<%= reorder_handle(enumeration, :url => enumeration_path(enumeration), :param => 'enumeration') %>
<%= delete_link enumeration_path(enumeration) %>
</td>
</tr>
<% end %>
</table>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>
<% end %>
<% html_title(l(:label_enumerations)) -%>
<%= javascript_tag do %>
$(function() { $("table.enumerations tbody").positionedItems(); });
<% end %>