28 lines
596 B
Plaintext
28 lines
596 B
Plaintext
<p style="color: green"><%= notice %></p>
|
|
|
|
<h1>Guests</h1>
|
|
|
|
<div id="guests">
|
|
<table>
|
|
<tr>
|
|
<th>Row #</th>
|
|
<th>Name</th>
|
|
<th>Email</th>
|
|
<th>Phone</th>
|
|
<th colspan="2"></th>
|
|
</tr>
|
|
<% @guests.each_with_index do |guest, i| %>
|
|
<tr>
|
|
<td><%= i + 1 %></td>
|
|
<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>
|
|
<% end %>
|
|
</table>
|
|
</div>
|
|
|
|
<%= link_to "New guest", new_guest_path %>
|