Add family members

This commit is contained in:
Andrew Tomaka 2022-11-20 15:52:18 -05:00
parent e588ab3db0
commit ab00344de0
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
19 changed files with 292 additions and 1 deletions

View file

@ -0,0 +1,17 @@
<div id="<%= dom_id member %>">
<p class="my-5">
<strong class="block font-medium mb-1">Name:</strong>
<%= member.name %>
</p>
<p class="my-5">
<strong class="block font-medium mb-1">Pays:</strong>
<%= member.pays %>
</p>
<% if action_name != "show" %>
<%= link_to "Show this member", member, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
<%= link_to 'Edit this member', edit_member_path(member), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
<hr class="mt-6">
<% end %>
</div>