residency/app/views/members/index.html.haml

26 lines
499 B
Plaintext
Raw Normal View History

2022-12-22 15:27:05 +01:00
.flex.justify-center
2022-12-20 16:05:26 +01:00
2022-12-22 15:27:05 +01:00
%h1 Listing members
2022-12-20 16:05:26 +01:00
2022-12-22 15:27:05 +01:00
%table
%thead
2022-12-20 16:05:26 +01:00
%tr
2022-12-22 15:27:05 +01:00
%th Name
%th Public
%th
%th
%th
2022-12-20 16:05:26 +01:00
2022-12-22 15:27:05 +01:00
%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?' }
2022-12-20 16:05:26 +01:00
2022-12-22 15:27:05 +01:00
%br
= link_to 'New Member', new_member_path