To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / custom_fields / _index.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.67 KB)
| 1 | 0:513646585e45 | Chris | <table class="list"> |
|---|---|---|---|
| 2 | <thead><tr> |
||
| 3 | 909:cbb26bc654de | Chris | <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 | 0:513646585e45 | Chris | </tr></thead> |
| 13 | <tbody>
|
||
| 14 | 909:cbb26bc654de | Chris | <% (@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), :action => 'edit', :id => 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 => 'edit', :id => custom_field}) %></td> |
||
| 24 | <td class="buttons"> |
||
| 25 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field },
|
||
| 26 | :method => :post,
|
||
| 27 | :confirm => l(:text_are_you_sure),
|
||
| 28 | :class => 'icon icon-del') %>
|
||
| 29 | </td>
|
||
| 30 | </tr>
|
||
| 31 | <% end; reset_cycle %>
|
||
| 32 | 0:513646585e45 | Chris | </tbody>
|
| 33 | </table>
|
||
| 34 | |||
| 35 | <p><%= link_to l(:label_custom_field_new), {:action => 'new', :type => tab[:name]}, :class => 'icon icon-add' %></p> |