Editable info paragraphs.
This commit is contained in:
30
lib/runosaari_web/templates/info/admin.html.eex
Normal file
30
lib/runosaari_web/templates/info/admin.html.eex
Normal file
@@ -0,0 +1,30 @@
|
||||
<section class="main">
|
||||
<h1>HALLINTA - Infon kappaleet</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sisältö</th>
|
||||
<th>Prioriteetti</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for info <- @info_paragraphs do %>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "Uusi kappale", to: Routes.admin_info_path(@conn, :new) %></span>
|
||||
</section>
|
||||
5
lib/runosaari_web/templates/info/edit.html.eex
Normal file
5
lib/runosaari_web/templates/info/edit.html.eex
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Muokkaa kappaletta</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_info_path(@conn, :update, @info)) %>
|
||||
|
||||
<span><%= link "Takaisin", to: Routes.admin_info_path(@conn, :admin) %></span>
|
||||
19
lib/runosaari_web/templates/info/form.html.eex
Normal file
19
lib/runosaari_web/templates/info/form.html.eex
Normal file
@@ -0,0 +1,19 @@
|
||||
<%= form_for @changeset, @action, fn f -> %>
|
||||
<%= if @changeset.action do %>
|
||||
<div class="alert alert-danger">
|
||||
<p>Jokin kentistä on tyhjä.</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= label f, :content, "Sisältö" %>
|
||||
<%= text_input f, :content %>
|
||||
<%= error_tag f, :content %>
|
||||
|
||||
<%= label f, :seqnum, "Prioritetti (1 on korkein)" %>
|
||||
<%= number_input f, :seqnum %>
|
||||
<%= error_tag f, :seqnum %>
|
||||
|
||||
<div>
|
||||
<%= submit "Tallenna" %>
|
||||
</div>
|
||||
<% end %>
|
||||
35
lib/runosaari_web/templates/info/index.html.eex
Normal file
35
lib/runosaari_web/templates/info/index.html.eex
Normal file
@@ -0,0 +1,35 @@
|
||||
<section class="main">
|
||||
<h1 id="contact-start">Info</h1>
|
||||
<i>[Tietoja päivitetään]</i>
|
||||
<p>
|
||||
Tapahtuman järjestää Saariston Savotta ry:n Runosaari-työryhmä.
|
||||
</p>
|
||||
<p>
|
||||
<b>Yhteistyössä:</b> Runoviikko ry, Taiteen edistämiskeskus Taike,
|
||||
Kirjan talo – Bokens hus ry, Livonsaaren kyläyhdistys ry ja
|
||||
Saaristohotelli Vaihela.
|
||||
</p>
|
||||
<%= for info <- @info_paragraphs do %>
|
||||
<p><%= info.content %></p>
|
||||
<% end %>
|
||||
<p>
|
||||
<b><i>Ota yhteyttä:</i></b> Inkeri Aula & Katariina Vuorinen,
|
||||
<a class="generic-link" href="mailto:info@runosaari.net">info@runosaari.net</a>
|
||||
</p>
|
||||
<h2><i>[TULOSSA]</i> <br />SURVIVAL-ohjeet saariston syrjäseudulle</h2>
|
||||
<ul>
|
||||
<li>Tietoa majoitusmahdollisuuksista ja ravitsemuspalveluista</li>
|
||||
<li>
|
||||
Tarjolla telttailumahdollisuus ja mahdollisesti yksinkertaista
|
||||
yhteismajoitusta Livonsaaren yhteisökylän mailla, 1 km
|
||||
Seurantalolta.
|
||||
</li>
|
||||
<li>Livonsaaren osuuskauppa palvelee: Infopiste</li>
|
||||
<li>
|
||||
Majoituspalvelut Velkualla: Wanha Salakuljettaja, Saaristohotelli
|
||||
Vaihela
|
||||
</li>
|
||||
<li>Bussi- ja kimppataksikuljetukset</li>
|
||||
<li>Kartta</li>
|
||||
</ul>
|
||||
</section>
|
||||
5
lib/runosaari_web/templates/info/new.html.eex
Normal file
5
lib/runosaari_web/templates/info/new.html.eex
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Info</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_info_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: Routes.admin_info_path(@conn, :admin) %></span>
|
||||
20
lib/runosaari_web/templates/info/show.html.eex
Normal file
20
lib/runosaari_web/templates/info/show.html.eex
Normal file
@@ -0,0 +1,20 @@
|
||||
<section class="main">
|
||||
<h1>Kappaleen tiedot</h1>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Sisältö:</strong>
|
||||
<%= @info.content %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Prioriteetti:</strong>
|
||||
<%= @info.seqnum %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Muokkaa", to: Routes.admin_info_path(@conn, :edit, @info) %></span>
|
||||
<span><%= link "Takaisin", to: Routes.admin_info_path(@conn, :admin) %></span>
|
||||
</section>
|
||||
Reference in New Issue
Block a user