2015-10-08 15:18:21 -04:00
|
|
|
- if policy(:leader_skill).new?
|
|
|
|
.row
|
|
|
|
.col-md-12
|
|
|
|
.pull-right
|
2015-10-09 08:17:29 -04:00
|
|
|
= link_to 'New Leader Skill', new_admin_leader_skill_path, class: 'btn btn-primary'
|
2015-10-06 13:55:12 -04:00
|
|
|
|
|
|
|
.row
|
|
|
|
.col-md-12
|
|
|
|
table.table.table-striped.table-hover
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Description
|
|
|
|
th Actions
|
|
|
|
tbody
|
|
|
|
- @leader_skills.each do |leader_skill|
|
|
|
|
tr
|
|
|
|
td= leader_skill.description
|
|
|
|
td
|
2015-10-08 15:18:21 -04:00
|
|
|
- if policy(:leader_skill).edit?
|
2015-10-09 08:17:29 -04:00
|
|
|
= link_to glyph('edit', classes: 'control-icon'), edit_admin_leader_skill_path(leader_skill)
|
2015-10-08 15:18:21 -04:00
|
|
|
- if policy(:leader_skill).destroy?
|
2015-10-09 08:17:29 -04:00
|
|
|
= link_to glyph('trash', classes: 'control-icon'), admin_leader_skill_path(leader_skill), method: :delete
|
2015-10-06 13:55:12 -04:00
|
|
|
|
2015-10-08 15:18:21 -04:00
|
|
|
- if policy(:leader_skill).new?
|
|
|
|
.row
|
|
|
|
.col-md-12
|
2015-10-09 08:17:29 -04:00
|
|
|
= link_to 'New Leader Skill', new_admin_leader_skill_path, class: 'btn btn-primary'
|