[PLUGIN][AttachmentCollections] Make it look good
This commit is contained in:
parent
7ddfe92773
commit
65a3d738ca
@ -212,7 +212,7 @@ class AttachmentCollections extends Plugin
|
|||||||
$res[] = Formatting::twigRenderFile(
|
$res[] = Formatting::twigRenderFile(
|
||||||
'AttachmentCollections/widget.html.twig',
|
'AttachmentCollections/widget.html.twig',
|
||||||
[
|
[
|
||||||
'colls' => $colls,
|
'has_collections' => $colls,
|
||||||
'add_form' => $add_form->createView(),
|
'add_form' => $add_form->createView(),
|
||||||
'create_form' => $create_form->createView(),
|
'create_form' => $create_form->createView(),
|
||||||
],
|
],
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<h2>{% trans %}Add to collection{% endtrans %}</h2>
|
<h2>{% trans %}Add to collection{% endtrans %}</h2>
|
||||||
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
||||||
</summary>
|
</summary>
|
||||||
|
{% if has_collections %}
|
||||||
<fieldset class="section-form">
|
<fieldset class="section-form">
|
||||||
{{ form(add_form) }}
|
{{ form(add_form) }}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@ -17,6 +18,11 @@
|
|||||||
{{ form(create_form) }}
|
{{ form(create_form) }}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</details>
|
</details>
|
||||||
|
{% else %}
|
||||||
|
<fieldset class="section-form">
|
||||||
|
{{ form(create_form) }}
|
||||||
|
</fieldset>
|
||||||
|
{% endif %}
|
||||||
</details>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -10,3 +10,8 @@
|
|||||||
.attachment-collections .attachment-collections-selections-options button {
|
.attachment-collections .attachment-collections-selections-options button {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
#add_collections {
|
||||||
|
height: auto !important;
|
||||||
|
max-height: 20rem !important;
|
||||||
|
overflow-y: auto !important;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user