Permalink
Browse files

Make forms more accessible

Addresses #341
  • Loading branch information...
johno committed Jul 6, 2017
1 parent 8cae106 commit d66b18e89ecbd34784acc09791083fbef53b3ea2
Showing with 21 additions and 4 deletions.
  1. +21 −4 contact.html
View
@@ -8,18 +8,35 @@
<div class="py2">
{% if site.ajaxify_contact_form %}
<form class="form-stacked">
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email }}">
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content }}" style="resize: vertical"></textarea>
<label>
Email
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email }}">
</label>
<label>
Content
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content }}" style="resize: vertical"></textarea>
</label>
<input type="text" name="_gotcha" style="display:none" />
<button type='submit' class="button button-blue button-big mobile-block">{{ site.text.contact.submit }}</button>
</form>
{% else %}
<form action="https://formspree.io/{{ site.email }}" method="POST" class="form-stacked">
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email }}">
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content }}" style="resize: vertical"></textarea>
<label>
Email
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email }}">
</label>
<label>
Content
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content }}" style="resize: vertical"></textarea>
</label>
<input type="hidden" name="_next" value="{{ site.baseurl }}/thanks/" />
<input type="hidden" name="_subject" value="{{ site.text.contact.subject }}" />
<input type="text" name="_gotcha" style="display:none" />
<input type="submit" class="button button-blue button-big mobile-block" value="{{ site.text.contact.submit }}">
</form>
{% endif %}

0 comments on commit d66b18e

Please sign in to comment.