wedding-planner/app/views/guests/index.html.erb

26 lines
533 B
Plaintext
Raw Normal View History

2024-07-11 20:08:26 +02:00
<p style="color: green"><%= notice %></p>
<h1>Guests</h1>
<div id="guests">
2024-07-11 20:13:22 +02:00
<table>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th colspan="2"></th>
</tr>
2024-07-11 20:08:26 +02:00
<% @guests.each do |guest| %>
2024-07-11 20:13:22 +02:00
<tr>
<td><%= guest.full_name %></td>
<td><%= guest.email %></td>
<td><%= guest.phone %></td>
<td><%= link_to "Show", guest %></td>
<td><%= link_to "Edit", edit_guest_path(guest) %></td>
</tr>
2024-07-11 20:08:26 +02:00
<% end %>
2024-07-11 20:13:22 +02:00
</table>
2024-07-11 20:08:26 +02:00
</div>
<%= link_to "New guest", new_guest_path %>