Survival instructions editable.

This commit is contained in:
codevictory
2021-06-15 22:03:41 +03:00
parent e24d318e2a
commit b4bb0c8282
23 changed files with 511 additions and 54 deletions

View File

@@ -0,0 +1,30 @@
<section class="main">
<h1>HALLINTA - Survival listan kohdat</h1>
<table>
<thead>
<tr>
<th>Sisältö</th>
<th>Priotiteetti</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for survival <- @survival_items do %>
<tr>
<td><%= survival.content %></td>
<td><%= survival.seqnum %></td>
<td class="actions">
<span><%= link "Lisätietoja", to: Routes.admin_survival_path(@conn, :show, survival) %></span>
<span><%= link "Muokkaa", to: Routes.admin_survival_path(@conn, :edit, survival) %></span>
<span><%= link "Poista", to: Routes.admin_survival_path(@conn, :delete, survival), method: :delete, data: [confirm: "Oletko varma?"] %></span>
</td>
</tr>
<% end %>
</tbody>
</table>
<span><%= link "Luo uusi survival kohta", to: Routes.admin_survival_path(@conn, :new) %></span>
</section>