Editable landing page.
This commit is contained in:
@@ -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