Show More
Commit Description:
manage
Commit Description:
manage
References:
File last commit:
Show/Diff file:
Action:
app/views/groups/index.html.haml
| 23 lines
| 723 B
| text/x-haml
| HamlLexer
|
r672 | %h1 Groups | |||
%p | ||||
r877 | = link_to 'New Group', new_group_path, class: 'btn btn-success' | |||
r672 | %table.table.table-hover | |||
%thead | ||||
%tr | ||||
%th Name | ||||
%th Description | ||||
r795 | %th Enabled? | |||
r672 | %th | |||
%tbody | ||||
- @groups.each do |group| | ||||
r795 | %tr{:class => "#{(group.enabled?) ? "success" : "danger"}", id: "group-#{group.id}"} | |||
r672 | %td= group.name | |||
%td= group.description | ||||
r877 | %td= toggle_button(group.enabled?, toggle_group_path(group), "group-enabled-#{group.id}", block: ' ') | |||
%td | ||||
= link_to 'Edit members and problems', group, class: 'btn btn-secondary btn-sm' | ||||
= link_to 'Destroy', group, :method => :delete, :data => { :confirm => 'Are you sure?' }, class: 'btn btn-danger btn-sm' | ||||
r672 | ||||
%br | ||||