2022-01-02 18:40:09 +00:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
|
|
|
|
2022-03-01 11:27:19 +00:00
|
|
|
{% block title %}{% trans %}%page_title%{% endtrans %}{% endblock %}
|
2022-01-02 18:40:09 +00:00
|
|
|
|
|
|
|
{% block body %}
|
2022-01-19 23:54:45 +00:00
|
|
|
<div class="frame-section frame-section-padding">
|
2022-03-01 11:27:19 +00:00
|
|
|
<h2 class="frame-section-title">{% trans %}%page_title%{% endtrans %}</h2>
|
2022-01-02 18:40:09 +00:00
|
|
|
{% if add_collection %}
|
2022-01-19 23:54:45 +00:00
|
|
|
<div class="frame-section section-form">
|
2022-01-02 18:40:09 +00:00
|
|
|
{{ form(add_collection) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-01-19 23:54:45 +00:00
|
|
|
<div class="frame-section collections-list">
|
2022-03-01 11:27:19 +00:00
|
|
|
<h3>{% trans %}%list_title%{% endtrans %}</h3>
|
2022-01-02 18:40:09 +00:00
|
|
|
{% for col in collections %}
|
|
|
|
<div class="collection-item">
|
|
|
|
<a class="name" href="{{ fn.getUrl(col.id) }}">{{ col.name }}</a>
|
|
|
|
<details title="Expand if you want to edit the collection's name">
|
|
|
|
<summary>
|
|
|
|
<span class="collection-action">{{ icon('edit') | raw }}</span>
|
|
|
|
</summary>
|
|
|
|
{{ form(fn.editForm(col)) }}
|
|
|
|
</details>
|
|
|
|
<details title="Expand if you want to delete the collection">
|
|
|
|
<summary>
|
|
|
|
<span class="collection-action">{{ icon('delete') | raw }}</span>
|
|
|
|
</summary>
|
|
|
|
{{ form(fn.rmForm(col)) }}
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock body %}
|