##// END OF EJS Templates
replace tabs to spaces at app/views/groups/_users.html.erb...
Toshi MARUYAMA -
r7157:8d72d4098b96
parent child
Show More
@@ -1,49 +1,49
1 1 <div class="splitcontentleft">
2 2 <% if @group.users.any? %>
3 <table class="list users">
4 <thead><tr>
5 <th><%= l(:label_user) %></th>
6 <th style="width:15%"></th>
7 </tr></thead>
8 <tbody>
9 <% @group.users.sort.each do |user| %>
10 <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>">
11 <td class="user"><%= link_to_user user %></td>
12 <td class="buttons">
13 <%= link_to_remote l(:button_delete), { :url => { :controller => 'groups', :action => 'remove_user', :id => @group, :user_id => user },
14 :method => :post },
15 :class => 'icon icon-del' %>
16 </td>
17 </tr>
18 <% end %>
19 </tbody>
20 </table>
3 <table class="list users">
4 <thead><tr>
5 <th><%= l(:label_user) %></th>
6 <th style="width:15%"></th>
7 </tr></thead>
8 <tbody>
9 <% @group.users.sort.each do |user| %>
10 <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>">
11 <td class="user"><%= link_to_user user %></td>
12 <td class="buttons">
13 <%= link_to_remote l(:button_delete), { :url => { :controller => 'groups', :action => 'remove_user', :id => @group, :user_id => user },
14 :method => :post },
15 :class => 'icon icon-del' %>
16 </td>
17 </tr>
18 <% end %>
19 </tbody>
20 </table>
21 21 <% else %>
22 <p class="nodata"><%= l(:label_no_data) %></p>
22 <p class="nodata"><%= l(:label_no_data) %></p>
23 23 <% end %>
24 24 </div>
25 25
26 26 <div class="splitcontentright">
27 27 <% users = User.active.not_in_group(@group).all(:limit => 100) %>
28 28 <% if users.any? %>
29 29 <% remote_form_for(:group, @group, :url => {:controller => 'groups', :action => 'add_users', :id => @group}, :method => :post) do |f| %>
30 30 <fieldset><legend><%=l(:label_user_new)%></legend>
31 31
32 <p><%= label_tag "user_search", l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>
33 <%= observe_field(:user_search,
32 <p><%= label_tag "user_search", l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>
33 <%= observe_field(:user_search,
34 34 :frequency => 0.5,
35 35 :update => :users,
36 36 :url => { :controller => 'groups', :action => 'autocomplete_for_user', :id => @group },
37 37 :with => 'q')
38 38 %>
39
40 <div id="users">
41 <%= principals_check_box_tags 'user_ids[]', users %>
42 </div>
43
39
40 <div id="users">
41 <%= principals_check_box_tags 'user_ids[]', users %>
42 </div>
43
44 44 <p><%= submit_tag l(:button_add) %></p>
45 </fieldset>
45 </fieldset>
46 46 <% end %>
47 47 <% end %>
48 48
49 49 </div>
General Comments 0
You need to be logged in to leave comments. Login now