<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%>

<%=l(:label_enumerations)%>

<% Enumeration.descendants.each do |klass| %>

<%= l(klass::OptionName) %>

<% enumerations = klass.shared %> <% if enumerations.any? %> <% enumerations.each do |enumeration| %> <% end %>
<%= Enumeration.human_attribute_name(:name) %> <%= Enumeration.human_attribute_name(:is_default) %> <%= Enumeration.human_attribute_name(:active) %>
<%= link_to h(enumeration), :action => 'edit', :id => enumeration %> <%= checked_image enumeration.is_default? %> <%= checked_image enumeration.active? %> <%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :method => :put) %> <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %>
<% reset_cycle %> <% end %>

<%= link_to l(:label_enumeration_new), { :action => 'new', :type => klass.name } %>

<% end %> <% html_title(l(:label_enumerations)) -%>