2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_enumerations)%></h2>
|
2007-01-02 14:15:54 +03:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<% Enumeration::OPTIONS.each do |option, name| %>
|
|
|
|
|
|
|
|
<% if params[:opt]==option %>
|
|
|
|
|
|
|
|
<h3><%= l(name) %></h3>
|
|
|
|
<ul>
|
|
|
|
<% for value in Enumeration.find(:all, :conditions => ["opt = ?", option]) %>
|
|
|
|
<li><%= link_to value.name, :action => 'edit', :id => value %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<p><%= link_to l(:label_enumeration_new), { :action => 'new', :opt => option }, :class => "icon icon-add" %></p>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
<h3><%= link_to l(name), :opt => option %></h3>
|
|
|
|
<% end %>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<% end %>
|