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