djLint/tests/source_django/input_option.html

9 lines
253 B
HTML
Raw Normal View History

2021-12-14 08:57:37 +00:00
{% 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 %}