##// END OF EJS Templates
Replaces acts_as_list with an implementation that handles #position= (#12909)....
Replaces acts_as_list with an implementation that handles #position= (#12909). Objects are reordered using the regular attribute writer #position= and AR callbacks. git-svn-id: http://svn.redmine.org/redmine/trunk@15335 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13220:1508cd7b8bf9
r14953:64afa24a7f72
Show More
_users.html.erb
22 lines | 709 B | text/plain | TextLexer
Jean-Philippe Lang
Moved new group user to its own action GroupsController#new_users....
r13220 <p><%= link_to l(:label_user_new), new_group_users_path(@group), :remote => true, :class => "icon icon-add" %></p>
Jean-Philippe Lang
User groups branch merged....
r2755 <% if @group.users.any? %>
Toshi MARUYAMA
replace tabs to spaces at app/views/groups/_users.html.erb...
r7157 <table class="list users">
<thead><tr>
<th><%= l(:label_user) %></th>
<th style="width:15%"></th>
</tr></thead>
<tbody>
<% @group.users.sort.each do |user| %>
<tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>">
Jean-Philippe Lang
Fixed alignments....
r12617 <td class="name"><%= link_to_user user %></td>
Toshi MARUYAMA
replace tabs to spaces at app/views/groups/_users.html.erb...
r7157 <td class="buttons">
Jean-Philippe Lang
Removes calls to link_to_remote....
r9847 <%= delete_link group_user_path(@group, :user_id => user), :remote => true %>
Toshi MARUYAMA
replace tabs to spaces at app/views/groups/_users.html.erb...
r7157 </td>
</tr>
<% end %>
</tbody>
</table>
Jean-Philippe Lang
User groups branch merged....
r2755 <% else %>
Toshi MARUYAMA
replace tabs to spaces at app/views/groups/_users.html.erb...
r7157 <p class="nodata"><%= l(:label_no_data) %></p>
Jean-Philippe Lang
User groups branch merged....
r2755 <% end %>