Answer the question
In order to leave comments, you need to log in
How to set labels and classes for form fields?
Hello, I'm submitting a form.
{% for field in user_form %}
{{ field }}
{% endfor %}
Answer the question
In order to leave comments, you need to log in
{% for field in user_form %}
<label class="class-name" for="{{ field.id_for_label }}">{{ field.label }}:</label>
{{ field }}
{% endfor %}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question