obdev/app/views/participants/show.html.erb

61 lines
1.6 KiB
Plaintext

<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<h1 class="mb-4 text-center">Participant Details</h1>
<div class="card">
<div class="card-body">
<p class="card-text">
<strong>Name:</strong>
<%= @participant.first_name %> <%= @participant.last_name %>
</p>
<p class="card-text">
<strong>Address:</strong>
<%= @participant.address %>
</p>
<p class="card-text">
<strong>Phone:</strong>
<%= @participant.phone %>
</p>
<p class="card-text">
<strong>Email:</strong>
<%= @participant.email %>
</p>
<p class="card-text">
<strong>MCI:</strong>
<%= @participant.mci %>
</p>
<p class="card-text">
<strong>DOB:</strong>
<%= @participant.dob.strftime('%B, %d, %Y') if @participant.dob.present? %>
</p>
<p class="card-text">
<strong>SSN:</strong>
<%= @participant.ssn %>
</p>
<p class="card-text">
<strong>Gender:</strong>
<%= @participant.gender %>
</p>
<!-- Repeat this pattern for other attributes like phone, email, etc. -->
</div>
</div>
<div class="mt-3 d-flex justify-content-between">
<%= link_to 'Edit', edit_participant_path(@participant), class: "btn btn-primary" %>
<%= link_to 'Back to List', participants_path, class: "btn btn-secondary" %>
</div>
</div>
</div>
</div>