daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest May 20th, 2018 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="page-width">
  2.   <div class="grid">
  3.     <div class="grid__item medium-up--five-sixths medium-up--push-one-twelfth">
  4.       <div class="section-header text-center">
  5.         <h1>{{ page.title }}</h1>
  6.       </div>
  7.  
  8.       {% if page.content.size > 0 %}
  9.         <div class="rte">
  10.           {{ page.content }}
  11.         </div>
  12.       {% endif %}
  13.  
  14.       <div class="contact-form form-vertical">
  15.         {% form 'contact' %}
  16.  
  17.           {% if form.posted_successfully? %}
  18.             <p class="form-message form-message--success">
  19.               {{ 'contact.form.post_success' | t }}
  20.             </p>
  21.           {% endif %}
  22.  
  23.           {%- if form.errors -%}
  24.             <div class="form-message form-message--error">
  25.               {{ form.errors | default_errors }}
  26.             </div>
  27.           {%- endif -%}
  28.  
  29.           <div class="grid grid--half-gutters">
  30.             <div class="grid__item medium-up--one-half">
  31.               <label for="ContactFormName">{{ 'contact.form.name' | t }}</label>
  32.               <input type="text" id="ContactFormName" name="contact[name]" value="{% if form[name] %}{{ form[name] }}{% elsif customer %}{{ customer.name }}{% endif %}">
  33.             </div>
  34.             <div class="grid__item medium-up--one-half">
  35.               <label for="ContactFormEmail" class="{% if form.errors contains 'email' %}label--error{% endif %}">{{ 'contact.form.email' | t }}</label>
  36.               <input type="email" id="ContactFormEmail" name="contact[email]" autocorrect="off" autocapitalize="off" value="{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}" class="{% if form.errors contains 'email' %}input--error{% endif %}">
  37.             </div>
  38.           </div>
  39.  
  40.           <label for="ContactFormPhone">{{ 'contact.form.phone' | t }}</label>
  41.           <input type="tel" id="ContactFormPhone" name="contact[phone]" pattern="[0-9\-]*" value="{% if form[phone] %}{{ form[phone] }}{% elsif customer %}{{ customer.phone }}{% endif %}">
  42.  
  43.           <label for="ContactFormMessage">{{ 'contact.form.message' | t }}</label>
  44.           <textarea rows="10" id="ContactFormMessage" name="contact[body]">{% if form.body %}{{ form.body }}{% endif %}</textarea>
  45.  
  46.           <input type="submit" class="btn" value="{{ 'contact.form.submit' | t }}">
  47.  
  48.         {% endform %}
  49.       </div>
  50.     </div>
  51.   </div>
  52. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top