Browse Source

nicer contact form

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
b11974cfb2
  1. 8
      app/views/public/pages/contact.html.erb
  2. 20
      app/views/public/pages/contact/_form.html.erb

8
app/views/public/pages/contact.html.erb

@ -6,6 +6,8 @@
</small> </small>
</div> </div>
<div class="row">
<%= render :partial => 'public/pages/contact/form' %> <div class="col-lg-offset-2 col-lg-8">
<%= render :partial => 'public/pages/contact/form' %>
</div>
</div>

20
app/views/public/pages/contact/_form.html.erb

@ -9,20 +9,10 @@
<%= f.text_field :nickname %> <%= f.text_field :nickname %>
</div> </div>
<div class="row"> <%= f.input :name, label: 'Your name' %>
<div class="col-lg-8"> <%= f.input :email, label: 'Your email' %>
<%= f.input :name, label: 'Your name' %> <%= f.input :file, as: :file, hint: 'can be attached optionally' %>
<%= f.input :email, label: 'Your email' %> <%= f.input :message, as: :text, input_html: { rows: 5 } %>
</div> <%= f.submit 'Send', :class => 'btn btn-primary' %>
<div class="col-lg-4">
<%= f.input :file, as: :file, hint: 'can be attached optionally' %>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<%= f.input :message, as: :text, input_html: { rows: 5 } %>
<%= f.submit 'Send', :class => 'btn btn-primary' %>
</div>
</div>
<% end %> <% end %>

Loading…
Cancel
Save