Better page for presenting performers.

This commit is contained in:
codevictory
2021-04-24 15:12:34 +03:00
parent 2fa0f520b6
commit 0e9a4f35e1
2 changed files with 18 additions and 35 deletions

View File

@@ -1,29 +1,12 @@
<h1>Listing Performers</h1>
<h1>Esiintyjät</h1>
<table>
<thead>
<tr>
<th>Fname</th>
<th>Lname</th>
<th>Email</th>
<th>Tel</th>
<th>Confirmed</th>
<th>Notes</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for performer <- @performers do %>
<tr>
<td><%= performer.fname %></td>
<td><%= performer.lname %></td>
<td><%= performer.email %></td>
<td><%= performer.tel %></td>
<td><%= performer.confirmed %></td>
<td><%= performer.notes %></td>
</tr>
<%= if performer.confirmed == true do %>
<article>
<h2><%= performer.fname %> <%= performer.lname %></h2>
<p><%= performer.notes %></p>
</article>
<% end %>
<% end %>
</tbody>
</table>
<%= link "Hallinta", to: Routes.admin_performer_path(@conn, :admin) %>