Created
February 24, 2011 23:23
-
-
Save webmozart/843115 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
<form method="post" action="..." {{ form.enctype }}> | |
{{ form.errors }} | |
{% for field in form.visible_fields %} | |
{{ field.label('My label') }} | |
{{ field.errors }} | |
{{ field.widget }} | |
The ID of this field is: {{ field.id }} | |
And the value: {{ field.value }} | |
{% endfor %} | |
Manually rendering fields: | |
{{ form.fields.name.row }} | |
{{ form.fields.email.row }} | |
{{ form.rest }} | |
<input type="submit" /> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just do:
{{ form.myfield.widget }}