index.html.erb
34 lines
| 1.2 KiB
| text/plain
|
TextLexer
|
r12 | <h2><%=l(:label_enumerations)%></h2> | ||
|
r789 | |||
|
r2677 | <% Enumeration.get_subclasses.each do |klass| %> | ||
<h3><%= l(klass::OptionName) %></h3> | ||||
|
r789 | |||
|
r2969 | <% enumerations = klass.shared %> | ||
|
r789 | <% if enumerations.any? %> | ||
|
r3620 | <table class="list"><thead> | ||
|
r2832 | <tr> | ||
<th><%= l(:field_name) %></th> | ||||
<th style="width:15%;"><%= l(:field_is_default) %></th> | ||||
<th style="width:15%;"><%= l(:field_active) %></th> | ||||
<th style="width:15%;"></th> | ||||
<th align="center" style="width:10%;"> </th> | ||||
|
r3620 | </tr></thead> | ||
|
r789 | <% enumerations.each do |enumeration| %> | ||
<tr class="<%= cycle('odd', 'even') %>"> | ||||
|
r8069 | <td><%= link_to h(enumeration), edit_enumeration_path(enumeration) %></td> | ||
|
r3486 | <td class="center" style="width:15%;"><%= checked_image enumeration.is_default? %></td> | ||
<td class="center" style="width:15%;"><%= checked_image enumeration.active? %></td> | ||||
|
r8069 | <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td> | ||
|
r2758 | <td class="buttons"> | ||
|
r9754 | <%= delete_link enumeration_path(enumeration) %> | ||
|
r1544 | </td> | ||
|
r789 | </tr> | ||
<% end %> | ||||
</table> | ||||
<% reset_cycle %> | ||||
<% end %> | ||||
|
r330 | |||
|
r8069 | <p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p> | ||
|
r789 | <% end %> | ||
|
r951 | |||
|
r1019 | <% html_title(l(:label_enumerations)) -%> | ||