1
0
Fork 0
dokkan-data-rails/app/views/admin/leader_skills/index.html.slim

27 lines
896 B
Text

- if policy(:leader_skill).new?
.row
.col-md-12
.pull-right
= link_to 'New Leader Skill', new_admin_leader_skill_path, class: 'btn btn-primary'
.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
- if policy(:leader_skill).edit?
= link_to glyph('edit', classes: 'control-icon'), edit_admin_leader_skill_path(leader_skill)
- if policy(:leader_skill).destroy?
= link_to glyph('trash', classes: 'control-icon'), admin_leader_skill_path(leader_skill), method: :delete
- if policy(:leader_skill).new?
.row
.col-md-12
= link_to 'New Leader Skill', new_admin_leader_skill_path, class: 'btn btn-primary'