meta_collections.html.twig 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {% extends 'stdgrid.html.twig' %}
  2. {% block title %}{{ page_title | trans }}{% endblock %}
  3. {% block body %}
  4. <div class="frame-section frame-section-padding">
  5. <h2 class="frame-section-title">{{ page_title | trans }}</h2>
  6. {% if add_collection %}
  7. <div class="frame-section section-form">
  8. {{ form(add_collection) }}
  9. </div>
  10. {% endif %}
  11. <div class="frame-section collections-list">
  12. <h3>{{ list_title | trans }}</h3>
  13. {% for col in collections %}
  14. <div class="collection-item">
  15. <a class="name" href="{{ fn.getUrl(col.id) }}">{{ col.name }}</a>
  16. <details title="Expand if you want to edit the collection's name">
  17. <summary>
  18. <span class="collection-action">{{ icon('edit') | raw }}</span>
  19. </summary>
  20. {{ form(fn.editForm(col)) }}
  21. </details>
  22. <details title="Expand if you want to delete the collection">
  23. <summary>
  24. <span class="collection-action">{{ icon('delete') | raw }}</span>
  25. </summary>
  26. {{ form(fn.rmForm(col)) }}
  27. </details>
  28. </div>
  29. {% endfor %}
  30. </div>
  31. </div>
  32. {% endblock body %}