index.html.erb
39 lines
| 1.3 KiB
| text/plain
|
TextLexer
|
r2755 | <div class="contextual"> | ||
<%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %> | ||||
</div> | ||||
|
r11819 | <%= title l(:label_group_plural) %> | ||
|
r15375 | |||
<%= form_tag(groups_path, :method => :get) do %> | ||||
<fieldset><legend><%= l(:label_filter_plural) %></legend> | ||||
<label for='name'><%= l(:label_group) %>:</label> | ||||
<%= text_field_tag 'name', params[:name], :size => 30 %> | ||||
<%= submit_tag l(:button_apply), :class => "small", :name => nil %> | ||||
<%= link_to l(:button_clear), groups_path, :class => 'icon icon-reload' %> | ||||
</fieldset> | ||||
<% end %> | ||||
| ||||
|
r2755 | <% if @groups.any? %> | ||
|
r15374 | <div class="autoscroll"> | ||
|
r2755 | <table class="list groups"> | ||
<thead><tr> | ||||
<th><%=l(:label_group)%></th> | ||||
<th><%=l(:label_user_plural)%></th> | ||||
<th></th> | ||||
</tr></thead> | ||||
<tbody> | ||||
<% @groups.each do |group| %> | ||||
|
r15867 | <tr id="group-<%= group.id %>" class="<%= "builtin" if group.builtin? %>"> | ||
|
r13661 | <td class="name"><%= link_to group, edit_group_path(group) %></td> | ||
|
r13053 | <td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td> | ||
<td class="buttons"><%= delete_link group unless group.builtin? %></td> | ||||
|
r2755 | </tr> | ||
<% end %> | ||||
|
r11383 | </tbody> | ||
|
r2755 | </table> | ||
|
r15374 | </div> | ||
<span class="pagination"><%= pagination_links_full @group_pages, @group_count %></span> | ||||
|
r2755 | <% else %> | ||
<p class="nodata"><%= l(:label_no_data) %></p> | ||||
<% end %> | ||||