Mercurial > hg > soundsoftware-site
comparison app/views/groups/_users.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | cbb26bc654de |
children | 622f24f53b42 |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
8 <tbody> | 8 <tbody> |
9 <% @group.users.sort.each do |user| %> | 9 <% @group.users.sort.each do |user| %> |
10 <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>"> | 10 <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>"> |
11 <td class="user"><%= link_to_user user %></td> | 11 <td class="user"><%= link_to_user user %></td> |
12 <td class="buttons"> | 12 <td class="buttons"> |
13 <%= link_to_remote l(:button_delete), { :url => group_user_path(@group, :user_id => user), :method => :delete }, :class => 'icon icon-del' %> | 13 <%= delete_link group_user_path(@group, :user_id => user), :remote => true %> |
14 </td> | 14 </td> |
15 </tr> | 15 </tr> |
16 <% end %> | 16 <% end %> |
17 </tbody> | 17 </tbody> |
18 </table> | 18 </table> |
22 </div> | 22 </div> |
23 | 23 |
24 <div class="splitcontentright"> | 24 <div class="splitcontentright"> |
25 <% users = User.active.not_in_group(@group).all(:limit => 100) %> | 25 <% users = User.active.not_in_group(@group).all(:limit => 100) %> |
26 <% if users.any? %> | 26 <% if users.any? %> |
27 <% remote_form_for(@group, :url => group_users_path(@group), :html => {:method => :post}) do |f| %> | 27 <%= form_for(@group, :remote => true, :url => group_users_path(@group), |
28 :html => {:method => :post}) do |f| %> | |
28 <fieldset><legend><%=l(:label_user_new)%></legend> | 29 <fieldset><legend><%=l(:label_user_new)%></legend> |
29 | 30 |
30 <p><%= label_tag "user_search", l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p> | 31 <p><%= label_tag "user_search", l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p> |
31 <%= observe_field(:user_search, | 32 <%= javascript_tag "observeSearchfield('user_search', 'users', '#{ escape_javascript autocomplete_for_user_group_path(@group) }')" %> |
32 :frequency => 0.5, | |
33 :update => :users, | |
34 :url => autocomplete_for_user_group_path(@group), | |
35 :method => :get, | |
36 :with => 'q') | |
37 %> | |
38 | 33 |
39 <div id="users"> | 34 <div id="users"> |
40 <%= principals_check_box_tags 'user_ids[]', users %> | 35 <%= principals_check_box_tags 'user_ids[]', users %> |
41 </div> | 36 </div> |
42 | 37 |