Sprankelprachtig aan/afmeldsysteem

index.html.erb 890B

1234567891011121314151617181920212223242526272829
  1. <h1><%= t('activerecord.models.group.other') %></h1>
  2. <table class="table">
  3. <thead>
  4. <tr>
  5. <th><%= t 'activerecord.attributes.group.name' %></th>
  6. <th><%= t 'activerecord.attributes.group.members' %></th>
  7. <th><%= t 'activerecord.attributes.group.activities' %></th>
  8. <th colspan="2"><%= t :actions %></th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <% @groups.each do |group| %>
  13. <tr>
  14. <td><%= link_to group.name, group %></td>
  15. <td><%= link_to group.members.count, group_members_path(group) %></td>
  16. <td><%= link_to group.activities.count, group_activities_path(group) %></td>
  17. <td><%= link_to t(:edit), edit_group_path(group) %></td>
  18. <td><%= link_to t(:destroy), group, method: :delete, data: { confirm: t(:areyousure)} %></td>
  19. </tr>
  20. <% end %>
  21. </tbody>
  22. </table>
  23. <br>
  24. <%= link_to t('groups.new'), new_group_path %>