Show More
Commit Description:
group enable
Commit Description:
group enable
References:
File last commit:
Show/Diff file:
Action:
app/views/groups/index.html.haml | 24 lines | 698 B | text/x-haml | HamlLexer |
add problem group
r672 %h1 Groups
%p
= link_to 'New Group', new_group_path, class: 'btn btn-primary'
%table.table.table-hover
%thead
%tr
%th Name
%th Description
group enable
r795 %th Enabled?
add problem group
r672 %th
%th
%tbody
- @groups.each do |group|
group enable
r795 %tr{:class => "#{(group.enabled?) ? "success" : "danger"}", id: "group-#{group.id}"}
add problem group
r672 %td= group.name
%td= group.description
group enable
r795 %td= toggle_button(group.enabled?, toggle_group_path(group), "group-enabled-#{group.id}", size: ' ', block: ' ')
user_admin
r673 %td= link_to 'View', group, class: 'btn btn-default'
add problem group
r672 %td= link_to 'Destroy', group, :method => :delete, :data => { :confirm => 'Are you sure?' }, class: 'btn btn-danger'
%br