Editable landing page.
This commit is contained in:
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 %>
|
||||
Reference in New Issue
Block a user