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