Editable landing page.
This commit is contained in:
30
lib/runosaari_web/templates/index/admin.html.eex
Normal file
30
lib/runosaari_web/templates/index/admin.html.eex
Normal file
@@ -0,0 +1,30 @@
|
||||
<section class="main">
|
||||
<h1>HALLINTA - Etusivu</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sisältö</th>
|
||||
<th>Prioriteetti</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for index <- @index_paragraphs do %>
|
||||
<tr>
|
||||
<td><%= index.content %></td>
|
||||
<td><%= index.seqnum %></td>
|
||||
|
||||
<td class="actions">
|
||||
<span><%= link "Lisätietoja", to: Routes.admin_index_path(@conn, :show, index) %></span>
|
||||
<span><%= link "Muokkaa", to: Routes.admin_index_path(@conn, :edit, index) %></span>
|
||||
<span><%= link "Poista", to: Routes.admin_index_path(@conn, :delete, index), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "Uusi Kappale", to: Routes.admin_index_path(@conn, :new) %></span>
|
||||
</section>
|
||||
5
lib/runosaari_web/templates/index/edit.html.eex
Normal file
5
lib/runosaari_web/templates/index/edit.html.eex
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Muokkaa kappaletta</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_index_path(@conn, :update, @index)) %>
|
||||
|
||||
<span><%= link "Takaisin", to: Routes.index_path(@conn, :index) %></span>
|
||||
19
lib/runosaari_web/templates/index/form.html.eex
Normal file
19
lib/runosaari_web/templates/index/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ö" %>
|
||||
<%= textarea f, :content %>
|
||||
<%= error_tag f, :content %>
|
||||
|
||||
<%= label f, :seqnum, "Prioriteetti (1 on korkein)" %>
|
||||
<%= number_input f, :seqnum %>
|
||||
<%= error_tag f, :seqnum %>
|
||||
|
||||
<div>
|
||||
<%= submit "Tallenna" %>
|
||||
</div>
|
||||
<% end %>
|
||||
28
lib/runosaari_web/templates/index/index.html.eex
Normal file
28
lib/runosaari_web/templates/index/index.html.eex
Normal file
@@ -0,0 +1,28 @@
|
||||
<section class="logo" id="logo-start">
|
||||
<picture>
|
||||
<source
|
||||
srcset="<%= Routes.static_path(@conn, "/images/runosaari-logo_small.jpg") %>"
|
||||
media="(max-width: 600px)"
|
||||
alt="Runosaari logo"
|
||||
/>
|
||||
<source srcset="<%= Routes.static_path(@conn, "/images/runosaari-logo.jpg") %>" alt="Runosaari logo" />
|
||||
<img src="<%= Routes.static_path(@conn, "/images/runosaari-logo.jpg") %>" alt="Runosaari logo" />
|
||||
</picture>
|
||||
<div id="logo-credits"><div>@Sanna Hukkanen</div></div>
|
||||
</section>
|
||||
|
||||
<section class="main">
|
||||
<h1 id="main-title">Runosaari 2021</h1>
|
||||
<h2>
|
||||
<span class="time-and-place"
|
||||
>~ 22.-24.7. Livonsaari & Velkuanmaa ~</span
|
||||
><br />
|
||||
Eksymisretki omaan luontoosi, metsänpeiton suojaan!
|
||||
</h2>
|
||||
<%= for index <- @index_paragraphs do %>
|
||||
<p><%= index.content %></p>
|
||||
<% end %>
|
||||
<p>
|
||||
<i>[Ohjelmaa päivitetään muuttuvan tilanteen mukaan]</i>
|
||||
</p>
|
||||
</section>
|
||||
7
lib/runosaari_web/templates/index/new.html.eex
Normal file
7
lib/runosaari_web/templates/index/new.html.eex
Normal file
@@ -0,0 +1,7 @@
|
||||
<section class="main">
|
||||
<h1>Luo kappale</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_index_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Takaisin", to: Routes.index_path(@conn, :index) %></span>
|
||||
</section>
|
||||
20
lib/runosaari_web/templates/index/show.html.eex
Normal file
20
lib/runosaari_web/templates/index/show.html.eex
Normal file
@@ -0,0 +1,20 @@
|
||||
<section class="main">
|
||||
<h1>Kappaleen tiedot</h1>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Sisältö:</strong>
|
||||
<%= @index.content %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Prioriteetti:</strong>
|
||||
<%= @index.seqnum %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Muokkaa", to: Routes.admin_index_path(@conn, :edit, @index) %></span>
|
||||
<span><%= link "Takaisin", to: Routes.index_path(@conn, :index) %></span>
|
||||
</section>
|
||||
@@ -15,7 +15,7 @@
|
||||
<body>
|
||||
<header >
|
||||
<nav class="main-nav-bar" role="navigation">
|
||||
<%= link "Etusivu", to: Routes.page_path(@conn, :index) %>
|
||||
<%= link "Etusivu", to: Routes.index_path(@conn, :index) %>
|
||||
<%= link "Ohjelma", to: Routes.performance_path(@conn, :index) %>
|
||||
<%= link "Esiintyjät", to: Routes.performer_path(@conn, :index) %>
|
||||
<%= link "Info", to: Routes.page_path(@conn, :info) %>
|
||||
@@ -26,7 +26,7 @@
|
||||
<a href="/#logo-container">Runosaari 2021</a>
|
||||
</h1>
|
||||
<nav class="mobile-main-nav-bar" id="nav-bar">
|
||||
<%= link "Etusivu", to: "#{Routes.page_path(@conn, :index)}#logo-start" %>
|
||||
<%= link "Etusivu", to: "#{Routes.index_path(@conn, :index)}#logo-start" %>
|
||||
<%= link "Ohjelma", to: "#{Routes.performance_path(@conn, :index)}#calendar-start" %>
|
||||
<%= link "Esiintyjät", to: "#{Routes.performer_path(@conn, :index)}#performers-start" %>
|
||||
<%= link "Info", to: "#{Routes.page_path(@conn, :info)}#contact-start" %>
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
|
||||
<section class="logo" id="logo-start">
|
||||
<picture>
|
||||
<source
|
||||
srcset="<%= Routes.static_path(@conn, "/images/runosaari-logo_small.jpg") %>"
|
||||
media="(max-width: 600px)"
|
||||
alt="Runosaari logo"
|
||||
/>
|
||||
<source srcset="<%= Routes.static_path(@conn, "/images/runosaari-logo.jpg") %>" alt="Runosaari logo" />
|
||||
<img src="<%= Routes.static_path(@conn, "/images/runosaari-logo.jpg") %>" alt="Runosaari logo" />
|
||||
</picture>
|
||||
<div id="logo-credits"><div>@Sanna Hukkanen</div></div>
|
||||
</section>
|
||||
|
||||
<section class="main">
|
||||
<h1 id="main-title">Runosaari 2021</h1>
|
||||
<h2>
|
||||
<span class="time-and-place"
|
||||
>~ 22.-24.7. Livonsaari & Velkuanmaa ~</span
|
||||
><br />
|
||||
Eksymisretki omaan luontoosi, metsänpeiton suojaan!
|
||||
</h2>
|
||||
<p>
|
||||
Lumi ja jää vähenee, vedenpinta nousee ja pandemian aallot viistävät
|
||||
meidänkin rantojamme. Peurojen kurittaman monimuotoisuuden keskelle
|
||||
nousee RUNOSAARI täynnä ihmetystä ja kysymyksiä: onko tulevaisuudella
|
||||
tulevaisuutta? Kuinka luontoon lomittuminen voi olla mahdollista? Jos
|
||||
eksymme metsänpeittoon, voimmeko löytää jonnekin?
|
||||
</p>
|
||||
<p>
|
||||
Järjestämme Livonsaaressa ja Velkuanmaassa uuden poikkitaiteellisen
|
||||
runofestivaalin 22.-24.7.2021. Ohjelmassa runous yhdistyy elävään
|
||||
musiikkiin ja erilaisiin taiteellisiin työpajoihin. Tapahtuma
|
||||
järjestetään joustavasti vallitsevien koronarajoitusten mukaan,
|
||||
ulkotiloja sekä erillisiä sisätiloja hyödyntäen. Livonsaaren
|
||||
perinteinen Seurantalo piknik-nurmikkoineen ja lähimetsineen tarjoaa
|
||||
puitteet lavaesiintyjille, työpajoille ja elävälle musiikille.
|
||||
Velkuanmaan saaren pastoraali-idylli kahden lossin takana viettelee
|
||||
saaristoluonnon syvyyksiin runolaulu-työpajan, kukkaseppelkruunujen ja
|
||||
karjalaisen löylyriitin myötä.
|
||||
</p>
|
||||
<p>
|
||||
Runosaari-festivaaliin osallistuu toistakymmentä maamme eturivin
|
||||
runoilijaa, muusikoita, työpajan vetäjiä ja muita esiintyjiä to 22.7.–
|
||||
la 24.7.2021.
|
||||
</p>
|
||||
<p>
|
||||
<i>[Ohjelmaa päivitetään muuttuvan tilanteen mukaan]</i>
|
||||
</p>
|
||||
</section>
|
||||
@@ -14,7 +14,7 @@
|
||||
<%= error_tag form, :desc %>
|
||||
|
||||
<%= label form, :seqnum, "Prioriteetti (1 on korkein)" %>
|
||||
<%= textarea form, :seqnum %>
|
||||
<%= number_input form, :seqnum %>
|
||||
<%= error_tag form, :seqnum %>
|
||||
|
||||
<%= label form, :photo, "Esiintyjän kuva" %>
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<section class="main">
|
||||
<h1 id="performers-start">Esiintyjät</h1>
|
||||
|
||||
<%= if length(@performers) == 0 do %>
|
||||
<i>Lisätietoja tulossa myöhemmin!</i>
|
||||
<% end %>
|
||||
<%= for performer <- @performers do %>
|
||||
<h2><%= performer.name %></h2>
|
||||
<p><%= performer.desc %></p>
|
||||
<% end %>
|
||||
<h1 id="performers-start">Esiintyjät</h1>
|
||||
|
||||
<%= if length(@performers) == 0 do %>
|
||||
<i>Lisätietoja tulossa myöhemmin!</i>
|
||||
<% end %>
|
||||
<%= for performer <- @performers do %>
|
||||
<h2><%= performer.name %></h2>
|
||||
<p><%= performer.desc %></p>
|
||||
<% end %>
|
||||
</section>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<section class="main">
|
||||
<h1>Ilmoittaudu</h1>
|
||||
<h1>Luo esiintyjä</h1>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, Routes.admin_performer_path(@conn, :create)) %>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user