residency/app/views/members/index.html.haml
2022-12-22 16:27:05 +02:00

26 lines
499 B
Plaintext

.flex.justify-center
%h1 Listing members
%table
%thead
%tr
%th Name
%th Public
%th
%th
%th
%tbody
- @members.each do |member|
%tr
%td= member.name
%td= member.public
%td= link_to 'Show', member
%td= link_to 'Edit', edit_member_path(member)
%td= link_to 'Destroy', member, method: :delete, data: { confirm: 'Are you sure?' }
%br
= link_to 'New Member', new_member_path