list.rhtml
29 lines
| 1.0 KiB
| text/html+ruby
|
RhtmlLexer
|
r12 | <h2><%=l(:label_enumerations)%></h2> | ||
|
r789 | |||
|
r2677 | <% Enumeration.get_subclasses.each do |klass| %> | ||
<h3><%= l(klass::OptionName) %></h3> | ||||
|
r789 | |||
|
r2677 | <% enumerations = klass.all %> | ||
|
r789 | <% if enumerations.any? %> | ||
<table class="list"> | ||||
<% enumerations.each do |enumeration| %> | ||||
<tr class="<%= cycle('odd', 'even') %>"> | ||||
|
r1489 | <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td> | ||
|
r792 | <td style="width:15%;"><%= image_tag('true.png') if enumeration.is_default? %></td> | ||
|
r2478 | <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td> | ||
|
r2758 | <td class="buttons"> | ||
<%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, | ||||
:method => :post, | ||||
:confirm => l(:text_are_you_sure), | ||||
:class => 'icon icon-del' %> | ||||
|
r1544 | </td> | ||
|
r789 | </tr> | ||
<% end %> | ||||
</table> | ||||
<% reset_cycle %> | ||||
<% end %> | ||||
|
r330 | |||
|
r2677 | <p><%= link_to l(:label_enumeration_new), { :action => 'new', :type => klass.name } %></p> | ||
|
r789 | <% end %> | ||
|
r951 | |||
|
r1019 | <% html_title(l(:label_enumerations)) -%> | ||