Newer
Older
dmpopidor / app / views / contact_us / contacts / new_simple_form.html.erb
@Marta Ribeiro Marta Ribeiro on 3 Jun 2016 520 bytes DMPonline4 - RAILS 4.0 (#4)
<h1><%= t('.contact_us') %></h1>
<%= simple_form_for @contact, :url => contacts_path do |f| %>
  <%= f.input :name, :label => t('.name') if ContactUs.require_name %>
  <%= f.input :email, :label => t('.email') %>
  <%= f.input :subject, :label => t('.subject') if ContactUs.require_subject %>
  <%= f.input :message, :as => :text, :label => t('.message') %>
  <%= f.button :submit, :label => t('.submit'), :button_html => { :alt => t('.submit'), :id => 'contact_us_contact_submit', :title => t('.submit') } %>
<% end %>