Professional Documents
Culture Documents
{% form myform
"firstname" "lastname" hidden "honeypot" %}
{% formlayout %}
Set layout with a modifier tag before the form is
rendered:
{% formlayout "ul" %}
{% form myform %}
{% formconfig %}
{% formlayout "ul" %}
{% form myform %}
{% endformconfig %}
{% formdefaults %}
You can specify default modifiers in your base
template:
{% formdefaults %}
{% formlayout "uniform" %}
{% endformdefaults %}
Helpers
{{ myform.field }} ->
{% formfield myform.field %}
{{ myform.field.label_tag }} ->
{% formlabel myform.field %}
{{ myform.field.help_text }} ->
{% formhelp myform.field %}
{{ myform.field.errors }} ->
{% formerrors myform.field %}
{{ myform.non_field_errors }} ->
{% formerrors myform.non_field_errors %}
Widgets
The GSoC project is based on Bruno Renié's
awesome work on template based widgets.
We want to take advantage of that
directly in the templates.
{% widget %}
Syntax: