Skip to content

Instantly share code, notes, and snippets.

Created September 13, 2017 14:31
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 anonymous/f380c316ad14864aed7aa95dbb2cafc8 to your computer and use it in GitHub Desktop.
Save anonymous/f380c316ad14864aed7aa95dbb2cafc8 to your computer and use it in GitHub Desktop.
{% macro errorList(errors) %}
{% if errors %}
<ul class="errors">
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% endmacro %}
{% from _self import errorList %}
<form method="post" action="" accept-charset="UTF-8" class="form">
{{ getCsrfInput() }}
<input type="hidden" name="action" value="contactForm/sendMessage">
<input type="hidden" name="fromName" value="" />
<input type="hidden" name="fromEmail" value="" />
<input type="hidden" name="redirect" value="contact-us/thank-you?from={fromName}">
<div class="field-group">
<div class="field field--half">
<input id="fname" type="text" name="message[First Name]" placeholder="First Name" value="" />
</div>
<div class="field field--half">
<input id="lname" type="text" name="message[Last Name]" placeholder="Last Name" value="" />
</div>
</div>
<div class="field-group">
<div class="field field--half">
<input id="email" type="email" name="message[Email]" placeholder="Email Address" value="">
</div>
<div class="field field--half">
<input id="phone" type="text" name="message[Phone]" placeholder="Phone Number" value="">
</div>
</div>
<div class="field">
<textarea name="message" name="message[body]" cols="30" rows="6" placeholder="Questions or Comments"></textarea>
</div>
<div class="field honeepotfield">
<label for="honeepotField">Don't put anything here</label>
<input type="text" name="honeepotField" id="honeepotField" />
</div>
<button type="submit" class="btn btn--primary">Send</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment