diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-12 17:23:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-12 17:23:14 +0000 |
commit | 5944696b6d4307de0166ba74c514aae25779abb9 (patch) | |
tree | c2543b32f0319c9e87efa7074d378e86bd60af78 /app/views | |
parent | a727f0d25a1e9f23be869a1dc413485b43a16935 (diff) | |
download | redmine-5944696b6d4307de0166ba74c514aae25779abb9.tar.gz redmine-5944696b6d4307de0166ba74c514aae25779abb9.zip |
Custom fields can now be reordered.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@901 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/custom_fields/list.rhtml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/custom_fields/list.rhtml b/app/views/custom_fields/list.rhtml index b6f1f278e..8862b3de1 100644 --- a/app/views/custom_fields/list.rhtml +++ b/app/views/custom_fields/list.rhtml @@ -19,10 +19,11 @@ <th><%=l(:field_is_for_all)%></th> <th><%=l(:label_used_by)%></th> <% end %> + <th><%=l(:button_sort)%></th> <th width="10%"></th> </tr></thead> <tbody> -<% for custom_field in (@custom_fields_by_type[type] || []) %> +<% for custom_field in (@custom_fields_by_type[type] || []).sort %> <tr class="<%= cycle("odd", "even") %>"> <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td> <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td> @@ -31,6 +32,12 @@ <td align="center"><%= image_tag 'true.png' 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> <% end %> + <td align="center" style="width:15%;"> + <%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id => custom_field, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) %> + <%= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id => custom_field, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> - + <%= link_to image_tag('1downarrow.png', :alt => l(:label_sort_lower)), {:action => 'move', :id => custom_field, :position => 'lower'}, :method => :post, :title => l(:label_sort_lower) %> + <%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => custom_field, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %> + </td> <td align="center"> <%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %> </td> |