Remove heading element wrapped around label element in order to resolve resulting incorrect heading structure.

This commit is contained in:
Helen C 2019-06-05 12:10:20 +01:00 committed by Thibaud Colas
parent 1e5612ff90
commit 7e19f28ff5

View file

@ -2,11 +2,9 @@
{% for child in self.children %}
<li class="object {{ child.classes|join:" " }}">
{% if child.heading %}
<h3>
<label {% if child.id_for_label %}for="{{ child.id_for_label }}"{% endif %}>
{{ child.heading }}
</label>
</h3>
<label {% if child.id_for_label %}for="{{ child.id_for_label }}"{% endif %}>
{{ child.heading }}
</label>
{% endif %}
<div class="object-layout">
{% if child.help_text %}