Created
August 11, 2015 09:18
-
-
Save yamaaki/3897b654c60e4cd76ddb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#members-index | |
.row | |
.col.s12.m9 | |
.section | |
#p-title.col.s12.scrollspy | |
h2.p-title members | |
.col.s12 | |
table.striped.responsive-table | |
thead | |
tr | |
th Email | |
th.center-align Edit | |
th.center-align Delete | |
tbody | |
- @members.each do |member| | |
tr | |
td.p-indent = member.email | |
td.center-align | |
= link_to edit_member_path(member), class: 'btn-floating waves-effect waves-light' do | |
i.material-icons edit | |
td.center-align | |
= form_for(member, url: member_path(member), html: { method: :delete }) do |f| | |
= button_tag class: 'btn-floating waves-effect waves-light red lighten-2', data: { confirm: 'Are you sure to delete this member?' } do | |
i.material-icons remove | |
.col.s12 | |
= paginate @members | |
.col.hide-on-small-only.m3 | |
ul.section.table-of-contents.p-right-nav | |
li = link_to 'members', '#p-title' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment