djLint/tests/source_django/input_option.html
2021-12-14 09:57:37 +01:00

8 lines
253 B
HTML

{% if widget.wrap_label %}
<label {% if widget.attrs.id %}for="{{ widget.attrs.id }}"{% endif %}>
{% endif %}
{% include "django/forms/widgets/input.html" %}
{% if widget.wrap_label %}
{{ widget.label }}
</label>
{% endif %}