Skip to content

Instantly share code, notes, and snippets.

@mikecmpbll
Created April 16, 2013 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikecmpbll/5395559 to your computer and use it in GitHub Desktop.
Save mikecmpbll/5395559 to your computer and use it in GitHub Desktop.
<p class="notice" style="display: none;"></p>
<p class="errorExplanation" style="display: none;"></p>
<%= form_tag contact_path, remote: true do -%>
<ul>
<li><%= label_tag :subject %> <%= text_field_tag :subject %></li>
<li><%= label_tag :phone %> <%= text_field_tag :phone, nil, class: :required %></li>
<li><%= label_tag :message %> <%= text_area_tag :message, nil, rows: 6, class: :required %>
<span class="desc">Please provide as much detail as you can about the nature of your request.</span>
</li>
<li><%= button_tag "Send" %></li>
<%= image_tag "/images/loader_large.gif", class: :loader, style: "display:none;" %>
</ul>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment