Mercurial > hg > soundsoftware-site
comparison .svn/pristine/1e/1e8f4706c992f648980e1bbef5b267351fd0e7ee.svn-base @ 1296:038ba2d95de8 redmine-2.2
Fix redmine-2.2 branch update (add missing svn files)
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:05:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1296:038ba2d95de8 |
---|---|
1 <table class="list"> | |
2 <thead><tr> | |
3 <th width="30%"><%=l(:field_name)%></th> | |
4 <th><%=l(:field_field_format)%></th> | |
5 <th><%=l(:field_is_required)%></th> | |
6 <% if tab[:name] == 'IssueCustomField' %> | |
7 <th><%=l(:field_is_for_all)%></th> | |
8 <th><%=l(:label_used_by)%></th> | |
9 <% end %> | |
10 <th><%=l(:button_sort)%></th> | |
11 <th width="10%"></th> | |
12 </tr></thead> | |
13 <tbody> | |
14 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%> | |
15 <tr class="<%= cycle("odd", "even") %>"> | |
16 <td><%= link_to h(custom_field.name), edit_custom_field_path(custom_field) %></td> | |
17 <td align="center"><%= l(Redmine::CustomFieldFormat.label_for(custom_field.field_format)) %></td> | |
18 <td align="center"><%= checked_image custom_field.is_required? %></td> | |
19 <% if tab[:name] == 'IssueCustomField' %> | |
20 <td align="center"><%= checked_image custom_field.is_for_all? %></td> | |
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> | |
22 <% end %> | |
23 <td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %></td> | |
24 <td class="buttons"> | |
25 <%= delete_link custom_field_path(custom_field) %> | |
26 </td> | |
27 </tr> | |
28 <% end; reset_cycle %> | |
29 </tbody> | |
30 </table> | |
31 | |
32 <p><%= link_to l(:label_custom_field_new), new_custom_field_path(:type => tab[:name]), :class => 'icon icon-add' %></p> |