2006-07-29 13:32:58 +04:00
|
|
|
<h2><%=l(:label_custom_field_plural)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-12-24 19:35:25 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2006-07-29 13:32:58 +04:00
|
|
|
<th><%=l(:field_name)%></th>
|
|
|
|
<th><%=l(:field_type)%></th>
|
|
|
|
<th><%=l(:field_field_format)%></th>
|
|
|
|
<th><%=l(:field_is_required)%></th>
|
|
|
|
<th><%=l(:field_is_for_all)%></th>
|
2006-07-29 23:54:22 +04:00
|
|
|
<th><%=l(:label_used_by)%></th>
|
2006-06-28 22:11:03 +04:00
|
|
|
<th></th>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% for custom_field in @custom_fields %>
|
2006-07-09 20:30:01 +04:00
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2006-06-28 22:11:03 +04:00
|
|
|
<td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td>
|
2006-07-29 13:32:58 +04:00
|
|
|
<td align="center"><%= l(custom_field.type_name) %></td>
|
2006-12-17 17:22:09 +03:00
|
|
|
<td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td>
|
2006-06-28 22:11:03 +04:00
|
|
|
<td align="center"><%= image_tag 'true' if custom_field.is_required? %></td>
|
|
|
|
<td align="center"><%= image_tag 'true' if custom_field.is_for_all? %></td>
|
2006-07-29 13:32:58 +04:00
|
|
|
<td align="center"><%= custom_field.projects.count.to_s + ' ' + lwr(:label_project, custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
|
2006-06-28 22:11:03 +04:00
|
|
|
<td align="center">
|
2006-09-02 17:33:23 +04:00
|
|
|
<%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
|
|
|
|
</td>
|
2006-06-28 22:11:03 +04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tbody>
|
2006-06-28 22:11:03 +04:00
|
|
|
</table>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= pagination_links_full @custom_field_pages %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<br />
|
2006-07-29 13:32:58 +04:00
|
|
|
<%=l(:label_custom_field_new)%>:
|
|
|
|
<ul>
|
|
|
|
<li><%= link_to l(:label_issue_plural), :action => 'new', :type => 'IssueCustomField' %></li>
|
|
|
|
<li><%= link_to l(:label_project_plural), :action => 'new', :type => 'ProjectCustomField' %></li>
|
|
|
|
<li><%= link_to l(:label_user_plural), :action => 'new', :type => 'UserCustomField' %></li>
|
|
|
|
</ul>
|