actors.html.twig 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {% extends 'stdgrid.html.twig' %}
  2. {% block title %}{{ title }}{% endblock %}
  3. {% block body %}
  4. <div class="frame-section frame-section-padding">
  5. <h1 class="frame-section-title">{{ title }}</h1>
  6. <details class="frame-section section-details-title">
  7. <summary class="details-summary-title">
  8. <strong>
  9. {% trans %}Ordering rules{% endtrans %}
  10. </strong>
  11. </summary>
  12. <form method="GET" class="section-form">
  13. <div class="container-grid">
  14. <section class="frame-section frame-section-padding">
  15. <strong>{% trans %}Sort by{% endtrans %}</strong>
  16. <hr>
  17. <div class="container-block">
  18. {% for field in sort_form_fields %}
  19. <span class="container-block">
  20. <label for="order_by_{{ field.value }}">{{ field.label }}</label>
  21. <input id="order_by_{{ field.value }}" type="radio" name="order_by" value="{{ field.value }}" {% if field.checked %}checked="checked"{% endif %}>
  22. </span>
  23. {% endfor %}
  24. </div>
  25. </section>
  26. <section class="frame-section frame-section-padding">
  27. <strong class="section-title">{% trans %}Order{% endtrans %}</strong>
  28. <hr>
  29. <section class="container-block">
  30. <span class="container-block">
  31. <label for="order_op_asc">{% trans %}Ascending{% endtrans %}</label>
  32. <input id="order_op_asc" type="radio" name="order_op" value="ASC">
  33. </span>
  34. <span class="container-block">
  35. <label for="order_op_desc">{% trans %}Descending{% endtrans %}</label>
  36. <input id="order_op_desc" type="radio" name="order_op" value="DESC" checked="checked">
  37. </span>
  38. </section>
  39. </section>
  40. </div>
  41. <button type="submit">{% trans %}Order{% endtrans %}</button>
  42. </form>
  43. </details>
  44. <section class="frame-section-padding">
  45. {% if actors is defined and actors is not empty %}
  46. {% for actor in actors %}
  47. {% block profile_view %}{% include 'cards/profile/view.html.twig' %}{% endblock profile_view %}
  48. <hr>
  49. {% endfor %}
  50. <p>{% trans %}Page: %page%{% endtrans %}</p>
  51. {% else %}
  52. <h2>{{ empty_message }}</h2>
  53. {% endif %}
  54. </section>
  55. </div>
  56. {% endblock body %}