600a1511cb
In user panel render time reduced dramatically, by ~70ms. Said icon was requested by twig >10 times.
28 lines
1014 B
Twig
28 lines
1014 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 %}
|
|
<fieldset class="section-form">
|
|
{{ form(add_form) }}
|
|
</fieldset>
|
|
|
|
<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>
|
|
<fieldset class="section-form">
|
|
{{ form(create_form) }}
|
|
</fieldset>
|
|
</details>
|
|
{% else %}
|
|
<fieldset class="section-form">
|
|
{{ form(create_form) }}
|
|
</fieldset>
|
|
{% endif %}
|
|
</details>
|
|
</section>
|
|
|