You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list.rhtml 1.6KB

123456789101112131415161718192021222324252627282930313233343536
  1. <h2><%=l(:label_custom_field_plural)%></h2>
  2. <table class="listTableContent">
  3. <tr class="ListHead">
  4. <th><%=l(:field_name)%></th>
  5. <th><%=l(:field_type)%></th>
  6. <th><%=l(:field_field_format)%></th>
  7. <th><%=l(:field_is_required)%></th>
  8. <th><%=l(:field_is_for_all)%></th>
  9. <th><%=l(:label_used_by)%></th>
  10. <th></th>
  11. </tr>
  12. <% for custom_field in @custom_fields %>
  13. <tr class="<%= cycle("odd", "even") %>">
  14. <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td>
  15. <td align="center"><%= l(custom_field.type_name) %></td>
  16. <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format]) %></td>
  17. <td align="center"><%= image_tag 'true' if custom_field.is_required? %></td>
  18. <td align="center"><%= image_tag 'true' if custom_field.is_for_all? %></td>
  19. <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>
  20. <td align="center">
  21. <%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
  22. </td>
  23. </tr>
  24. <% end %>
  25. </table>
  26. <%= pagination_links_full @custom_field_pages %>
  27. <br />
  28. <%=l(:label_custom_field_new)%>:
  29. <ul>
  30. <li><%= link_to l(:label_issue_plural), :action => 'new', :type => 'IssueCustomField' %></li>
  31. <li><%= link_to l(:label_project_plural), :action => 'new', :type => 'ProjectCustomField' %></li>
  32. <li><%= link_to l(:label_user_plural), :action => 'new', :type => 'UserCustomField' %></li>
  33. </ul>