7d546e8901
Accessibility tests failed if the fieldset had no legend, since it wasn't really neeeded, it was replaced as another element.
28 lines
1008 B
Twig
28 lines
1008 B
Twig
<section class="section-widget collections">
|
|
<details class="section-widget-title-details" title="Expand if you want to access more options.">
|
|
<summary class="section-title-summary">
|
|
<h2>{{ctitle}}</h2>
|
|
</summary>
|
|
{% if has_collections %}
|
|
<section class="section-form">
|
|
{{ form(add_form) }}
|
|
</section>
|
|
|
|
<details class="section-widget-subtitle-details section-padding"
|
|
title="Expand if you want to access more options.">
|
|
<summary class="section-subtitle-summary">
|
|
<strong>{% trans %}Other options{% endtrans %}</strong>
|
|
</summary>
|
|
<section class="section-form">
|
|
{{ form(create_form) }}
|
|
</section>
|
|
</details>
|
|
{% else %}
|
|
<section class="section-form">
|
|
{{ form(create_form) }}
|
|
</section>
|
|
{% endif %}
|
|
</details>
|
|
</section>
|
|
|