You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
624 B
24 lines
624 B
13 years ago
|
<%= simple_form_for(@contact_form,
|
||
|
url: { action: 'contact' },
|
||
|
html: { method: :post, class: 'form-horizontal' }
|
||
|
) do |f| %>
|
||
|
|
||
13 years ago
|
<%= error_messages_for(@contact_form) %>
|
||
|
|
||
|
<div style="display:none;">
|
||
|
<%= f.text_field :nickname %>
|
||
|
</div>
|
||
|
|
||
13 years ago
|
<div class="inputs">
|
||
|
<%= f.input :name, label: 'Your name' %>
|
||
|
<%= f.input :email, label: 'Your email' %>
|
||
13 years ago
|
<%= f.input :file, as: :file, hint: 'can be attached optionally' %>
|
||
13 years ago
|
<%= f.input :message, as: :text, input_html: { rows: 10 } %>
|
||
|
</div>
|
||
13 years ago
|
|
||
13 years ago
|
<div class="form-actions">
|
||
|
<%= f.submit 'Send', :class => 'btn btn-primary' %>
|
||
|
</div>
|
||
13 years ago
|
|
||
|
<% end %>
|