Survival instructions editable.

This commit is contained in:
codevictory
2021-06-15 22:03:41 +03:00
parent e24d318e2a
commit b4bb0c8282
23 changed files with 511 additions and 54 deletions

View File

@@ -0,0 +1,19 @@
<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Joku kentistä on tyhjä.</p>
</div>
<% end %>
<%= label f, :content, "Sisältö" %>
<%= textarea f, :content %>
<%= error_tag f, :content %>
<%= label f, :seqnum, "Prioritetti (1 on korkein)" %>
<%= number_input f, :seqnum %>
<%= error_tag f, :seqnum %>
<div>
<%= submit "Tallenna" %>
</div>
<% end %>