annotate .svn/pristine/1e/1e8f4706c992f648980e1bbef5b267351fd0e7ee.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 <table class="list">
Chris@1296 2 <thead><tr>
Chris@1296 3 <th width="30%"><%=l(:field_name)%></th>
Chris@1296 4 <th><%=l(:field_field_format)%></th>
Chris@1296 5 <th><%=l(:field_is_required)%></th>
Chris@1296 6 <% if tab[:name] == 'IssueCustomField' %>
Chris@1296 7 <th><%=l(:field_is_for_all)%></th>
Chris@1296 8 <th><%=l(:label_used_by)%></th>
Chris@1296 9 <% end %>
Chris@1296 10 <th><%=l(:button_sort)%></th>
Chris@1296 11 <th width="10%"></th>
Chris@1296 12 </tr></thead>
Chris@1296 13 <tbody>
Chris@1296 14 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
Chris@1296 15 <tr class="<%= cycle("odd", "even") %>">
Chris@1296 16 <td><%= link_to h(custom_field.name), edit_custom_field_path(custom_field) %></td>
Chris@1296 17 <td align="center"><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %></td>
Chris@1296 18 <td align="center"><%= checked_image custom_field.is_required? %></td>
Chris@1296 19 <% if tab[:name] == 'IssueCustomField' %>
Chris@1296 20 <td align="center"><%= checked_image custom_field.is_for_all? %></td>
Chris@1296 21 <td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
Chris@1296 22 <% end %>
Chris@1296 23 <td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %></td>
Chris@1296 24 <td class="buttons">
Chris@1296 25 <%= delete_link custom_field_path(custom_field) %>
Chris@1296 26 </td>
Chris@1296 27 </tr>
Chris@1296 28 <% end; reset_cycle %>
Chris@1296 29 </tbody>
Chris@1296 30 </table>
Chris@1296 31
Chris@1296 32 <p><%= link_to l(:label_custom_field_new), new_custom_field_path(:type => tab[:name]), :class => 'icon icon-add' %></p>