list.rhtml
38 lines
| 1.6 KiB
| text/html+ruby
|
RhtmlLexer
|
r10 | <h2><%=l(:label_custom_field_plural)%></h2> | ||
|
r2 | |||
|
r105 | <table class="list"> | ||
<thead><tr> | ||||
|
r10 | <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> | ||||
|
r12 | <th><%=l(:label_used_by)%></th> | ||
|
r2 | <th></th> | ||
|
r105 | </tr></thead> | ||
<tbody> | ||||
|
r2 | <% for custom_field in @custom_fields %> | ||
|
r5 | <tr class="<%= cycle("odd", "even") %>"> | ||
|
r2 | <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td> | ||
|
r10 | <td align="center"><%= l(custom_field.type_name) %></td> | ||
|
r97 | <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td> | ||
|
r154 | <td align="center"><%= image_tag 'true.png' if custom_field.is_required? %></td> | ||
<td align="center"><%= image_tag 'true.png' if custom_field.is_for_all? %></td> | ||||
|
r10 | <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> | ||
|
r2 | <td align="center"> | ||
|
r19 | <%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %> | ||
</td> | ||||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r2 | </table> | ||
|
r10 | <%= pagination_links_full @custom_field_pages %> | ||
|
r2 | |||
<br /> | ||||
|
r10 | <%=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> | ||||