Add form update

This commit is contained in:
2020-04-14 14:25:38 +02:00
parent 4821227895
commit f12238fbd4
4 changed files with 45 additions and 15 deletions

View File

@@ -4,21 +4,9 @@
<div class="box">
<div class="content has-text-centered">
<h1 class="has-text-weight-light">Create a new form</h1>
<%= form_for @form do |f| %>
<div class="field">
<div class="control">
<%= f.text_field :title, class: 'input', placeholder: 'Title' %>
</div>
</div>
<div class="field">
<div class="control">
<%= f.text_field :thank_you_url, class: 'input', placeholder: 'Thank you url' %>
</div>
</div><br>
<div>
<%= f.submit class: 'button is-primary' %>
<% end %>
</divdiv>
<%= render 'form', form: @form %>
</div>
</div>
</div>