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

26 lines
639 B
Text
Raw Normal View History

2015-10-06 13:55:12 -04:00
.row
.col-md-12
.pull-right
= link_to 'New Card', new_card_path, class: 'btn btn-primary'
.row
.col-md-12
table.table.table-striped.table-hover
thead
tr
th Prefix
th Name
th Actions
tbody
- @cards.each do |card|
tr
td= card.prefix
td= card.name
td
= link_to glyph('edit', classes: 'control-icon'), edit_card_path(card)
= link_to glyph('trash', classes: 'control-icon'), card_path(card), method: :delete
.row
.col-md-12
= link_to 'New Card', new_card_path, class: 'btn btn-primary'