Skip to content
Snippets Groups Projects
Commit 1e59b502 authored by Nathan Page's avatar Nathan Page Committed by Alberto Siles
Browse files

Issue #3137559 by amoebanath: Form-element template puts wrong classes on labels

parent e1a01bfe
No related branches found
No related tags found
No related merge requests found
...@@ -104,13 +104,13 @@ ...@@ -104,13 +104,13 @@
</div> </div>
{% endif %} {% endif %}
{% if label_display == 'before' %} {% if label_display == 'before' %}
<label {{ attributes.addClass(labelclass).setAttribute('for', input_attributes.id) }}> <label {{ label_attributes.addClass(labelclass).setAttribute('for', input_attributes.id) }}>
{{ input_title | raw }} {{ input_title | raw }}
</label> </label>
{% endif %} {% endif %}
<input{{ input_attributes.addClass(inputclass) }}> <input{{ input_attributes.addClass(inputclass) }}>
{% if label_display == 'after' %} {% if label_display == 'after' %}
<label {{ attributes.addClass(labelclass).setAttribute('for', input_attributes.id) }}> <label {{ label_attributes.addClass(labelclass).setAttribute('for', input_attributes.id) }}>
{{ input_title | raw }} {{ input_title | raw }}
</label> </label>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment