You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.erb 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="contextual">
  2. <%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
  3. </div>
  4. <%= title l(:label_group_plural) %>
  5. <%= form_tag(groups_path, :method => :get) do %>
  6. <fieldset><legend><%= l(:label_filter_plural) %></legend>
  7. <label for='name'><%= l(:label_group) %>:</label>
  8. <%= text_field_tag 'name', params[:name], :size => 30 %>
  9. <%= submit_tag l(:button_apply), :class => "small", :name => nil %>
  10. <%= link_to l(:button_clear), groups_path, :class => 'icon icon-reload' %>
  11. </fieldset>
  12. <% end %>
  13. &nbsp;
  14. <% if @groups.any? %>
  15. <div class="autoscroll">
  16. <table class="list groups">
  17. <thead><tr>
  18. <th><%=l(:label_group)%></th>
  19. <th><%=l(:label_user_plural)%></th>
  20. <th></th>
  21. </tr></thead>
  22. <tbody>
  23. <% @groups.each do |group| %>
  24. <tr id="group-<%= group.id %>" class="<%= "builtin" if group.builtin? %>">
  25. <td class="name"><%= link_to group, edit_group_path(group) %></td>
  26. <td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td>
  27. <td class="buttons"><%= delete_link group unless group.builtin? %></td>
  28. </tr>
  29. <% end %>
  30. </tbody>
  31. </table>
  32. </div>
  33. <span class="pagination"><%= pagination_links_full @group_pages, @group_count %></span>
  34. <% else %>
  35. <p class="nodata"><%= l(:label_no_data) %></p>
  36. <% end %>