summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 20:57:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-31 20:57:01 +0000
commit671a0fa10161ead2ec0fef888710cf7d872b2f61 (patch)
treef7b9068afbc1d1e360106b9584cd88aa89f10ab1 /app/views/roles
parent99f006f2c959ce9d1e5136e950ca448cc92ec7c9 (diff)
downloadredmine-671a0fa10161ead2ec0fef888710cf7d872b2f61.tar.gz
redmine-671a0fa10161ead2ec0fef888710cf7d872b2f61.zip
added the ability to set the sort order for roles
git-svn-id: http://redmine.rubyforge.org/svn/trunk@208 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r--app/views/roles/list.rhtml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/roles/list.rhtml b/app/views/roles/list.rhtml
index 141d75873..c6c4492b3 100644
--- a/app/views/roles/list.rhtml
+++ b/app/views/roles/list.rhtml
@@ -7,6 +7,7 @@
<table class="list">
<thead><tr>
<th><%=l(:label_role)%></th>
+ <th><%=l(:button_sort)%></th>
<th></th>
</tr></thead>
<tbody>
@@ -14,6 +15,12 @@
<tr class="<%= cycle("odd", "even") %>">
<td><%= link_to role.name, :action => 'edit', :id => role %></td>
<td align="center">
+ <%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id => role, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) %>
+ <%= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id => role, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> -
+ <%= link_to image_tag('1downarrow.png', :alt => l(:label_sort_lower)), {:action => 'move', :id => role, :position => 'lower'}, :method => :post, :title => l(:label_sort_lower) %>
+ <%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => role, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %>
+ </td>
+ <td align="center">
<%= button_to l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
</tr>
<% end %>