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

@@ -2,28 +2,28 @@
<h1>HALLINTA - Infon kappaleet</h1>
<table>
<thead>
<tr>
<th>Sisältö</th>
<th>Prioriteetti</th>
<thead>
<tr>
<th>Sisältö</th>
<th>Prioriteetti</th>
<th></th>
</tr>
</thead>
<tbody>
<th></th>
</tr>
</thead>
<tbody>
<%= for info <- @info_paragraphs do %>
<tr>
<td><%= info.content %></td>
<td><%= info.seqnum %></td>
<td><%= info.content %></td>
<td><%= info.seqnum %></td>
<td class="actions">
<span><%= link "Lisätietoja", to: Routes.admin_info_path(@conn, :show, info) %></span>
<span><%= link "Muokkaa", to: Routes.admin_info_path(@conn, :edit, info) %></span>
<span><%= link "Poista", to: Routes.admin_info_path(@conn, :delete, info), method: :delete, data: [confirm: "Oletko varma?"] %></span>
</td>
<td class="actions">
<span><%= link "Lisätietoja", to: Routes.admin_info_path(@conn, :show, info) %></span>
<span><%= link "Muokkaa", to: Routes.admin_info_path(@conn, :edit, info) %></span>
<span><%= link "Poista", to: Routes.admin_info_path(@conn, :delete, info), method: :delete, data: [confirm: "Oletko varma?"] %></span>
</td>
</tr>
<% end %>
</tbody>
</tbody>
</table>
<span><%= link "Uusi kappale", to: Routes.admin_info_path(@conn, :new) %></span>