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

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