Created
December 30, 2011 19:24
-
-
Save davidthewatson/1541125 to your computer and use it in GitHub Desktop.
flask wtf form template
This file contains 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
<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