annotate .svn/pristine/f8/f8521c11cdeac38e38f69c0622051d315a0519fd.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <h2><%=l(:label_enumerations)%></h2>
Chris@1295 2
Chris@1295 3 <% Enumeration.get_subclasses.each do |klass| %>
Chris@1295 4 <h3><%= l(klass::OptionName) %></h3>
Chris@1295 5
Chris@1295 6 <% enumerations = klass.shared %>
Chris@1295 7 <% if enumerations.any? %>
Chris@1295 8 <table class="list"><thead>
Chris@1295 9 <tr>
Chris@1295 10 <th><%= l(:field_name) %></th>
Chris@1295 11 <th style="width:15%;"><%= l(:field_is_default) %></th>
Chris@1295 12 <th style="width:15%;"><%= l(:field_active) %></th>
Chris@1295 13 <th style="width:15%;"></th>
Chris@1295 14 <th align="center" style="width:10%;"> </th>
Chris@1295 15 </tr></thead>
Chris@1295 16 <% enumerations.each do |enumeration| %>
Chris@1295 17 <tr class="<%= cycle('odd', 'even') %>">
Chris@1295 18 <td><%= link_to h(enumeration), edit_enumeration_path(enumeration) %></td>
Chris@1295 19 <td class="center" style="width:15%;"><%= checked_image enumeration.is_default? %></td>
Chris@1295 20 <td class="center" style="width:15%;"><%= checked_image enumeration.active? %></td>
Chris@1295 21 <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td>
Chris@1295 22 <td class="buttons">
Chris@1295 23 <%= delete_link enumeration_path(enumeration) %>
Chris@1295 24 </td>
Chris@1295 25 </tr>
Chris@1295 26 <% end %>
Chris@1295 27 </table>
Chris@1295 28 <% reset_cycle %>
Chris@1295 29 <% end %>
Chris@1295 30
Chris@1295 31 <p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p>
Chris@1295 32 <% end %>
Chris@1295 33
Chris@1295 34 <% html_title(l(:label_enumerations)) -%>