Mercurial > hg > soundsoftware-site
diff .svn/pristine/03/0327b87f817dd6e7b29c9fc60cf3afcc96b39ebb.svn-base @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/03/0327b87f817dd6e7b29c9fc60cf3afcc96b39ebb.svn-base Tue Jan 14 14:37:42 2014 +0000 @@ -0,0 +1,32 @@ +<h2><%=l(:label_enumerations)%></h2> + +<% Enumeration.get_subclasses.each do |klass| %> +<h3><%= l(klass::OptionName) %></h3> + +<% enumerations = klass.shared %> +<% if enumerations.any? %> +<table class="list"><thead> +<tr> + <th><%= l(:field_name) %></th> + <th><%= l(:field_is_default) %></th> + <th><%= l(:field_active) %></th> + <th><%=l(:button_sort)%></th> + <th></th> +</tr></thead> +<% enumerations.each do |enumeration| %> +<tr class="<%= cycle('odd', 'even') %>"> + <td class="name"><%= link_to h(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="reorder"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td> + <td class="buttons"><%= delete_link enumeration_path(enumeration) %></td> +</tr> +<% end %> +</table> +<% reset_cycle %> +<% end %> + +<p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p> +<% end %> + +<% html_title(l(:label_enumerations)) -%>