Fix malformed HTML: wrong tags, tags out of place

This commit is contained in:
Thibaud Colas 2019-05-09 10:24:57 +01:00
parent f7aff62fad
commit e698af8b08
6 changed files with 6 additions and 9 deletions

View file

@ -1,10 +1,10 @@
<div {{ self.attrs }} class="c-dropdown {% if is_parent %}t-inverted{% else %}t-default{% endif %}" data-dropdown>
<a href="javascript:void(0)" title="{{ title }}" class="c-dropdown__button u-btn-current">
{{ label }}
<div data-dropdown-toggle class="o-icon c-dropdown__toggle [ icon icon-arrow-down ]"></div>
<div data-dropdown-toggle class="o-icon c-dropdown__toggle [ icon icon-arrow-down ]"></div>
</a>
<div class="t-dark">
<ul role="menu" class="c-dropdown__menu u-toggle u-arrow u-arrow--tl u-background">
<ul role="menu" class="c-dropdown__menu u-toggle u-arrow u-arrow--tl u-background">
{% for button in buttons %}
<li class="c-dropdown__item ">
<a href="{{ button.url }}" title="{{ button.attrs.title }}" class="u-link is-live {{ button.classes|join:' ' }}">
@ -12,5 +12,6 @@
</a>
</li>
{% endfor %}
</ul>
</div>
</div>

View file

@ -39,7 +39,7 @@
{% include "wagtailadmin/permissions/includes/collection_member_permissions_form.html" with form=form only %}
</tr>
{% endfor %}
<tbody>
</tbody>
</table>
<script type="text/django-form-template" id="id_{{ formset.prefix }}-EMPTY_FORM_TEMPLATE">

View file

@ -30,7 +30,6 @@
{{ cell }}
</td>
{% endfor %}
<td>
</tr>
{% endfor %}
</tbody>

View file

@ -61,7 +61,4 @@
</dl>
</div>
</div>
</div>
{% endblock %}

View file

@ -39,7 +39,7 @@
{% include "wagtailusers/groups/includes/page_permissions_form.html" with form=form only %}
</tr>
{% endfor %}
<tbody>
</tbody>
</table>
<script type="text/django-form-template" id="id_{{ formset.prefix }}-EMPTY_FORM_TEMPLATE">

View file

@ -15,7 +15,7 @@
<a href="{% url 'wagtailusers_groups:edit' group.id %}">{{ group.name }}</a>
</h2>
</td>
</li>
</tr>
{% endfor %}
</tbody>
</table>