daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest May 21st, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <!-- CONTACT FORM -->
  3. <div class="contact-section">
  4.     <div class="container">
  5.      
  6.         <div class="row">
  7.             <div class="col-md-6">
  8.                 {% form 'contact' %}
  9.                 {% if form.posted_successfully? %}
  10.                   <p class="note form-success">
  11.                     {{ 'contact.form.post_success' | t }}
  12.                   </p>
  13.                 {% endif %}
  14.                 {{ form.errors | default_errors }}
  15.                
  16.                 {% assign name_attr = 'contact.form.name' | t | handle %}
  17.              
  18.                     <div  class="row">
  19.                         <div class="col-md-6">
  20.                             <label for="ContactFormName" class="hidden-label">{{ 'contact.form.name' | t }}</label>
  21.                             <input type="text" id="ContactFormName" class="form-control" name="contact[{{ name_attr }}]" autocapitalize="words" value="{% if form[name_attr] %}{{ form[name_attr] }}{% elsif customer %}{{ customer.name }}{% endif %}">
  22.                         </div>
  23.                         <div class="col-md-6">
  24.                             <label for="ContactFormEmail" class="hidden-label">{{ 'contact.form.email' | t }}</label>
  25.                             <input type="email" id="ContactFormEmail" class="form-control" name="contact[email]" autocorrect="off" autocapitalize="off" value="{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}">
  26.                         </div>
  27.                     </div>
  28.              
  29.                     {% assign name_attr = 'contact.form.phone' | t | handle %}
  30.                     <label for="ContactFormPhone" class="hidden-label">{{ 'contact.form.phone' | t }}</label>
  31.                     <input type="tel" id="ContactFormPhone" class="form-control" name="contact[{{ name_attr }}]" pattern="[0-9\-]*" value="{% if form[name_attr] %}{{ form[name_attr] }}{% elsif customer %}{{ customer.phone }}{% endif %}">
  32.                     <label for="ContactFormMessage" class="hidden-label">{{ 'contact.form.message' | t }}</label>
  33.                     <textarea id="ContactFormMessage" class="form-control" name="contact[body]">{% if form.body %}{{ form.body }}{% endif %}</textarea>
  34.                     <input type="submit" class="btn btn-default" value="{{ 'contact.form.send' | t }}">
  35.                 {% endform %}
  36.             </div>
  37.             <div class="col-md-4 col-md-offset-1">
  38.                 <div class="contact-info">
  39.                     <h2>{{ settings.contact_content_title }}</h2>
  40.                     <p>{{ settings.contact_content_desc }}</p>
  41.                     <h3 class="moist-heading no-after">{{ settings.contact_content_info }}</h3>
  42.                  </div>
  43.             </div>
  44.         </div><!-- END Row -->
  45.     </div><!-- END Container -->
  46. </div
  47. <!-- END CONTACT FORM -->
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