Better page for presenting performers.
This commit is contained in:
@@ -3,12 +3,12 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Fname</th>
|
<th>Etunimi</th>
|
||||||
<th>Lname</th>
|
<th>Sukunimi</th>
|
||||||
<th>Email</th>
|
<th>Sähköposti</th>
|
||||||
<th>Tel</th>
|
<th>Puhelin numero</th>
|
||||||
<th>Confirmed</th>
|
<th>Vahvistettu</th>
|
||||||
<th>Notes</th>
|
<th>Seloste</th>
|
||||||
|
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -24,13 +24,13 @@
|
|||||||
<td><%= performer.notes %></td>
|
<td><%= performer.notes %></td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span><%= link "Show", to: Routes.performer_path(@conn, :show, performer) %></span>
|
<span><%= link "Näytä", to: Routes.performer_path(@conn, :show, performer) %></span>
|
||||||
<span><%= link "Edit", to: Routes.admin_performer_path(@conn, :edit, performer) %></span>
|
<span><%= link "Muokkaa", to: Routes.admin_performer_path(@conn, :edit, performer) %></span>
|
||||||
<span><%= link "Delete", to: Routes.admin_performer_path(@conn, :delete, performer), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
<span><%= link "Poista", to: Routes.admin_performer_path(@conn, :delete, performer), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<span><%= link "New Performance", to: Routes.admin_performance_path(@conn, :new) %></span>
|
<span><%= link "Uusi esiintyjä", to: Routes.admin_performer_path(@conn, :new) %></span>
|
||||||
|
|||||||
@@ -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 %>
|
<%= for performer <- @performers do %>
|
||||||
<tr>
|
<%= if performer.confirmed == true do %>
|
||||||
<td><%= performer.fname %></td>
|
<article>
|
||||||
<td><%= performer.lname %></td>
|
<h2><%= performer.fname %> <%= performer.lname %></h2>
|
||||||
<td><%= performer.email %></td>
|
<p><%= performer.notes %></p>
|
||||||
<td><%= performer.tel %></td>
|
</article>
|
||||||
<td><%= performer.confirmed %></td>
|
<% end %>
|
||||||
<td><%= performer.notes %></td>
|
|
||||||
</tr>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<%= link "Hallinta", to: Routes.admin_performer_path(@conn, :admin) %>
|
<%= link "Hallinta", to: Routes.admin_performer_path(@conn, :admin) %>
|
||||||
|
|||||||
Reference in New Issue
Block a user