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.
 
 
 
 
 
 

30 lines
661 B

<%= form_for @contact_form, :url => {:action => 'contact'}, :method => 'post' do |f| %>
<%= error_messages_for(@contact_form) %>
<div style="display:none;">
<%= f.text_field :nickname %>
</div>
<p>
<%= f.label :name, 'Your name' %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :email, 'Your email' %><br />
<%= f.text_field :email %>
</p>
<p>
<%= f.label :file %> <i>can be attached optionally</i><br />
<%= f.file_field :file %>
</p>
<p>
<%= f.label :message %><br />
<%= f.text_area :message, :rows => 10 %>
</p>
<p><%= f.submit 'Send', :class => 'send-contact-form' %></p>
<% end %>