Skip to content

Instantly share code, notes, and snippets.

@davidthewatson
Created December 30, 2011 19:24
Show Gist options
  • Save davidthewatson/1541125 to your computer and use it in GitHub Desktop.
Save davidthewatson/1541125 to your computer and use it in GitHub Desktop.
flask wtf form template
<form method="post" action="">
<fieldset>
<legend>Applications</legend>
{% for field in form %}
<div class="clearfix">
{{ field.label }}
<div class="input">
{{ field }}
{% if field.errors %}
<ul class="errors">
{% for error in field.errors %}<li>{{ error }}</li>{% endfor %}
</ul>
{% endif %}
</div>
</div> <!-- clearfix -->
{% endfor %}
<div class="actions">
<button class="btn primary" type="submit">Save</button>
</div>
</fieldset>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment