Editable landing page.

This commit is contained in:
codevictory
2021-05-26 21:47:50 +03:00
parent 8befa3058c
commit f1e44e87d9
20 changed files with 484 additions and 68 deletions

View File

@@ -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" %>

View File

@@ -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>

View File

@@ -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>