mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #32338 -- Added Boundfield.legend_tag().
This commit is contained in:
committed by
Mariusz Felisiak
parent
81739a45b5
commit
eba9a9b7f7
7
tests/forms_tests/templates/forms_tests/legend_test.html
Normal file
7
tests/forms_tests/templates/forms_tests/legend_test.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% for field in form %}
|
||||
{% if field.widget_type == 'radioselect' %}
|
||||
{{ field.legend_tag }}
|
||||
{% else %}
|
||||
{{ field.label_tag }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user