Add family members
This commit is contained in:
parent
e588ab3db0
commit
ab00344de0
19 changed files with 292 additions and 1 deletions
17
app/views/members/_member.html.erb
Normal file
17
app/views/members/_member.html.erb
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue