budget/app/views/members/_member.html.erb

18 lines
573 B
Text
Raw Normal View History

2022-11-20 15:52:18 -05:00
<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>