2022-01-03 03:40:09 +09:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
|
|
|
|
2022-03-01 20:27:19 +09:00
|
|
|
{% block title %}{% trans %}%page_title%{% endtrans %}{% endblock %}
|
2022-01-03 03:40:09 +09:00
|
|
|
|
|
|
|
{% block body %}
|
2022-01-20 08:54:45 +09:00
|
|
|
<div class="frame-section frame-section-padding">
|
2022-03-01 20:27:19 +09:00
|
|
|
<h2 class="frame-section-title">{% trans %}%page_title%{% endtrans %}</h2>
|
2022-01-03 03:40:09 +09:00
|
|
|
{% if add_collection %}
|
2022-01-20 08:54:45 +09:00
|
|
|
<div class="frame-section section-form">
|
2022-01-03 03:40:09 +09:00
|
|
|
{{ form(add_collection) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-01-20 08:54:45 +09:00
|
|
|
<div class="frame-section collections-list">
|
2022-03-01 20:27:19 +09:00
|
|
|
<h3>{% trans %}%list_title%{% endtrans %}</h3>
|
2022-01-03 03:40:09 +09: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 %}
|