Sha256: 178e7c4b195456ce2286bf05035ec01b9b38f9bd54440280072b32c3c9a3540c
Contents?: true
Size: 1.76 KB
Versions: 4
Compression:
Stored size: 1.76 KB
Contents
<h2><%= t('.contact_us') %></h2> <%= form_for @contact, :url => contacts_path, :html => {:class => 'formtastic'} do |f| %> <% if ContactUs.require_name %> <li class='string required' id='contact_us_contact_name_input'> <%= f.label :name, (t('.name') + content_tag(:abbr, '*', :class => 'required')).html_safe %> <%= f.text_field :name %> <% if f.object.errors[:name].present? %> <p class='inline-error'><%= f.object.errors[:name].join(' and ') %></p> <% end %> </li> <% end %> <li class='string required' id='contact_us_contact_email_input'> <%= f.label :email, (t('.email') + content_tag(:abbr, '*', :class => 'required')).html_safe %> <%= f.text_field :email %> <% if f.object.errors[:email].present? %> <p class='inline-error'><%= f.object.errors[:email].join(' and ') %></p> <% end %> </li> <% if ContactUs.require_subject %> <li class='string required' id='contact_us_contact_subject_input'> <%= f.label :subject, (t('.subject') + content_tag(:abbr, '*', :class => 'required')).html_safe %> <%= f.text_field :subject %> <% if f.object.errors[:subject].present? %> <p class='inline-error'><%= f.object.errors[:subject].join(' and ') %></p> <% end %> </li> <% end %> <li class='text required' id='contact_us_contact_message_input'> <%= f.label :message, (t('.message') + content_tag(:abbr, '*', :class => 'required')).html_safe %> <%= f.text_area :message %> <% if f.object.errors[:message].present? %> <p class='inline-error'><%= f.object.errors[:message].join(' and ') %></p> <% end %> </li> <li class='commit'> <%= f.submit :submit, :alt => t('.submit'), :class => 'submit create', :label => t('.submit'), :title => t('.submit') %> </li> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems