diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-05 20:45:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-05 20:45:04 +0000 |
commit | 96f83cc8f0f032554f771a59da22303cd473b878 (patch) | |
tree | 355a0d2ed653a5426c59ebf6a1fe65eba024b4d0 /app/views/custom_fields/list.rhtml | |
parent | eabc04d8368824965d3ac8de3fa84502e9c05d38 (diff) | |
download | redmine-96f83cc8f0f032554f771a59da22303cd473b878.tar.gz redmine-96f83cc8f0f032554f771a59da22303cd473b878.zip |
trunk moved from /trunk/redmine to /trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields/list.rhtml')
-rw-r--r-- | app/views/custom_fields/list.rhtml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/custom_fields/list.rhtml b/app/views/custom_fields/list.rhtml new file mode 100644 index 000000000..858590c49 --- /dev/null +++ b/app/views/custom_fields/list.rhtml @@ -0,0 +1,36 @@ +<h2><%=l(:label_custom_field_plural)%></h2> +
+<table class="listTableContent">
+<tr class="ListHead"> + <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>
+ <th><%=l(:label_used_by)%></th>
+ <th></th>
+</tr> +<% for custom_field in @custom_fields %> + <tr class="<%= cycle("odd", "even") %>">
+ <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td>
+ <td align="center"><%= l(custom_field.type_name) %></td> + <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format]) %></td>
+ <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>
+ <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> + <td align="center"> + <%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %> + </td> + </tr> +<% end %> +</table>
+ +<%= pagination_links_full @custom_field_pages %> + +<br /> +<%=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> |