Merge pull request #11 from bumi/New-forms-page

Add some styling on create form
This commit is contained in:
2020-04-14 11:59:44 +02:00
committed by GitHub
4 changed files with 39 additions and 5 deletions

View File

@@ -35,6 +35,16 @@ $light: #fff;
height: 100%;
}
.content {
padding: 30px 60px 50px;
&>h1 {
margin-bottom: 40px;
}
}
body {
min-height: 100vh;
}

View File

@@ -1,5 +1,26 @@
<%= form_for @form do |f| %>
<%= f.text_field :title %>
<%= f.text_field :thank_you_url %>
<%= f.submit %>
<% end %>
<div class="section">
<div class=" columns ">
<div class="column is-half is-offset-one-quarter">
<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>
</div>
</div>
</div>
</div>
</div>