2009-09-12 13:13:13 +04:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2013-11-12 01:01:21 +04:00
|
|
|
<th><%=l(:field_name)%></th>
|
2011-09-18 06:03:31 +04:00
|
|
|
<th><%=l(:field_field_format)%></th>
|
|
|
|
<th><%=l(:field_is_required)%></th>
|
|
|
|
<% if tab[:name] == 'IssueCustomField' %>
|
|
|
|
<th><%=l(:field_is_for_all)%></th>
|
|
|
|
<th><%=l(:label_used_by)%></th>
|
|
|
|
<% end %>
|
|
|
|
<th><%=l(:button_sort)%></th>
|
2013-11-12 01:01:21 +04:00
|
|
|
<th></th>
|
2009-09-12 13:13:13 +04:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2011-09-18 06:03:31 +04:00
|
|
|
<% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2013-11-12 01:01:21 +04:00
|
|
|
<td class="name"><%= link_to h(custom_field.name), edit_custom_field_path(custom_field) %></td>
|
2013-12-14 12:22:43 +04:00
|
|
|
<td><%= l(custom_field.format.label) %></td>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td><%= checked_image custom_field.is_required? %></td>
|
2011-09-18 06:03:31 +04:00
|
|
|
<% if tab[:name] == 'IssueCustomField' %>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td><%= checked_image custom_field.is_for_all? %></td>
|
|
|
|
<td><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
|
2011-09-18 06:03:31 +04:00
|
|
|
<% end %>
|
2013-11-10 17:24:07 +04:00
|
|
|
<td class="reorder"><%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %></td>
|
2011-09-18 06:03:31 +04:00
|
|
|
<td class="buttons">
|
2012-07-07 18:36:49 +04:00
|
|
|
<%= delete_link custom_field_path(custom_field) %>
|
2011-09-18 06:03:31 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end; reset_cycle %>
|
2009-09-12 13:13:13 +04:00
|
|
|
</tbody>
|
|
|
|
</table>
|