Created
May 27, 2016 02:28
-
-
Save projoomexperts/62946aa290dd89b09d66e0887e28f99a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- /templates/page.contact.liquid --> | |
<div class="grid"> | |
<div class="grid__item large--five-sixths push--large--one-twelfth"> | |
<header class="section-header text-center"> | |
<h1>{{ page.title }}</h1> | |
<hr class="hr--small"> | |
</header> | |
<div class="grid"> | |
<div class="grid__item large--four-fifths push--large--one-tenth"> | |
<div class="rte rte--nomargin rte--indented-images"> | |
{{ page.content }} | |
</div> | |
<div class="form-vertical"> | |
{% form 'contact' %} | |
{% comment %} | |
Successful message | |
{% endcomment %} | |
{% if form.posted_successfully? %} | |
<p class="note form-success"> | |
{{ 'contact.form.post_success' | t }} | |
</p> | |
{% endif %} | |
{{ form.errors | default_errors }} | |
<div class="grid grid--small"> | |
<div class="grid__item large--one-half"> | |
<label for="ContactFormName" class="hidden-label">{{ 'contact.form.name' | t }}</label> | |
<input type="text" id="ContactFormName" class="input-full" name="contact[name]" placeholder="{{ 'contact.form.name' | t }}" autocapitalize="words" value="{% if form.name %}{{ form.name }}{% elsif customer %}{{ customer.name }}{% endif %}"> | |
</div> | |
<div class="grid__item large--one-half"> | |
<label for="ContactFormEmail" class="hidden-label">{{ 'contact.form.email' | t }}</label> | |
<input type="email" id="ContactFormEmail" class="input-full" name="contact[email]" placeholder="{{ 'contact.form.email' | t }}" autocorrect="off" autocapitalize="off" value="{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}"> | |
<input type="hidden" id="ContactFormHidden" name="contact[email]" value="{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}" > | |
</div> | |
</div> | |
<label for="ContactFormPhone" class="hidden-label">{{ 'contact.form.phone' | t }}</label> | |
<input type="tel" id="ContactFormPhone" class="input-full" name="contact[phone]" placeholder="{{ 'contact.form.phone' | t }}" pattern="[0-9\-]*" value="{% if form.phone %}{{ form.phone }}{% elsif customer %}{{ customer.phone }}{% endif %}"> | |
<label for="ContactFormMessage" class="hidden-label">{{ 'contact.form.message' | t }}</label> | |
<textarea rows="10" id="ContactFormMessage" class="input-full" name="contact[body]" placeholder="{{ 'contact.form.message' | t }}">{% if form.body %}{{ form.body }}{% endif %}</textarea> | |
<input type="submit" class="btn right" value="{{ 'contact.form.send' | t }}"> | |
<label for="mc-email"></label> | |
{% endform %} | |
{{ 'mailchimp.js' | asset_url | script_tag }} | |
<script> | |
$('#ContactFormEmail').change(function(){ | |
var email = $(this).val(); | |
$('#ContactFormHidden').val( email ); | |
}); | |
</script> | |
<script> | |
$('#contact_form').ajaxChimp({ | |
url: 'https://cyberite.us4.list-manage.com/subscribe/post?u=858232f1e77dc411cb2405b5f&id=502f26188f', | |
}); | |
</script> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment