templates/Structure/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}SENACS | Liste des Centres sociaux{% endblock title %}
  3. {% block submenu %}
  4. {% include 'SubMenu/submenu_structures.html.twig' %}
  5. {% endblock submenu %}
  6. {% block highlighted %}{% endblock highlighted %}
  7. {% block sidebar %}
  8. <aside id="sidebar" class="col-md-3">
  9. </aside>
  10. {% endblock sidebar %}
  11. {% block description %}
  12. <div class="col-md-12">
  13. <div class="header-list">
  14. <h1 class="page-header">{{title}}</h1>
  15. {% include 'Structure/list_blocFilter.html.twig' %}
  16. </div>
  17. <table class="table table-striped table-hover">
  18. <thead>
  19. <tr>
  20. <th>{{ knp_pagination_sortable(pagination, 'Nom', 'e.nom')|raw }}</th>
  21. <th>{{ knp_pagination_sortable(pagination, 'Ville', 'c.nom')|raw }}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {%- for entity in pagination %}
  26. <tr>
  27. <td><a href="#" data-bs-toggle="modal" data-bs-target="#ModalStructure{{entity.id}}" data-bs-toggle="modal">{{ entity.nom|replace({'"':' '}) }}</a></td>
  28. <td class="table-city"><span class="td-code-postal">{{ entity.codePostal }}</span><span>{{ entity.getCommuneImplementation }}</span></td>
  29. </tr>
  30. {%- endfor %}
  31. </tbody>
  32. </table>
  33. {# modal for structure details #}
  34. {%- for entity in pagination %}
  35. {% include 'Structure/show_modal_information.html.twig' with {'idModal': entity.id} %}
  36. {%- endfor %}
  37. <!-- pagination -->
  38. {{ knp_pagination_render(pagination) }}
  39. </div>
  40. {% endblock description %}