Skip to content

Commit

Permalink
prevent assigning empty for="" attributes to <label>s
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonf committed Aug 5, 2024
1 parent b43c065 commit 67c7335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdh/core/templates/cdh.core/form_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endwith %}
>
<div class="uu-form-field">
<label for="{{ field.id_for_label }}" class="form-label d-block">
<label {% if field.id_for_label %}for="{{ field.id_for_label }}"{% endif %} class="form-label d-block">
{{ field.label }}
</label>
{{ field }}
Expand Down

0 comments on commit 67c7335

Please sign in to comment.