diff .svn/pristine/f8/f8521c11cdeac38e38f69c0622051d315a0519fd.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.svn/pristine/f8/f8521c11cdeac38e38f69c0622051d315a0519fd.svn-base	Fri Jun 14 09:02:21 2013 +0100
@@ -0,0 +1,34 @@
+<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 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>
+</tr></thead>
+<% enumerations.each do |enumeration| %>
+<tr class="<%= cycle('odd', 'even') %>">
+    <td><%= link_to h(enumeration), edit_enumeration_path(enumeration) %></td>
+    <td class="center" style="width:15%;"><%= checked_image enumeration.is_default? %></td>
+    <td class="center" style="width:15%;"><%= checked_image enumeration.active? %></td>
+    <td style="width:15%;"><%= 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)) -%>