You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.6KB

  1. {% extends 'frontend/carto.html.twig' %}
  2. {% import 'frontend/macro.html.twig' as macro %}
  3. {% block carto %}
  4. <div id="carto-liste">
  5. <h1 class="title-liste">La liste simple... et rêvolutionnaire !</h1>
  6. {{ form_start(form, { 'attr' : { 'class': 'form-search' }}) }}
  7. <div class="row">
  8. <div class="col-12 col-sm-6">
  9. {{ form_errors(form) }}
  10. {{ form_widget(form.search, {'attr': {'class': 'input-search'}}) }}
  11. </div>
  12. <div class="col-6 col-sm">
  13. {{ macro.dropdown_search(form.category) }}
  14. </div>
  15. <div class="col-6 col-sm">
  16. {{ macro.dropdown_search(form.thematic) }}
  17. </div>
  18. <div class="col-6 col-sm col-territory">
  19. {{ macro.dropdown_search(form.territory) }}
  20. </div>
  21. <div class="col-6 col-sm">
  22. {{ form_row(form.search_button, { 'label': 'Rechercher' }) }}
  23. </div>
  24. </div>
  25. <div class="row">
  26. <div class="col">
  27. {{ form_widget(form.export_excel, { 'label': 'Exporter au format Excel' }) }}
  28. {{ form_widget(form.export_pdf, { 'label': 'Exporter au format PDF' }) }}
  29. </div>
  30. </div>
  31. {{ form_end(form) }}
  32. {% if resultArray %}
  33. <div class="navigation">
  34. {{ knp_pagination_render(resultArray) }}
  35. </div>
  36. <table class="table-search">
  37. <thead>
  38. <tr>
  39. <th>Catégorie</th>
  40. <th>Thématique</th>
  41. <th>Contribution</th>
  42. <th>Lieu</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {% for result in resultArray %}
  47. <tr>
  48. <td>
  49. {{ result }}
  50. </td>
  51. <td>
  52. {{ result.thematic }}
  53. </td>
  54. <td>
  55. {{ result.subthematic }}
  56. </td>
  57. <td>
  58. {% if result.individualData is not empty %}
  59. {{ result.individualData.territory }}
  60. {% elseif result.collectifData is not empty %}
  61. {{ result.collectifData.territory }}
  62. {% endif %}
  63. </td>
  64. </tr>
  65. {% endfor %}
  66. </tbody>
  67. </table>
  68. {% endif %}
  69. </div>
  70. {% endblock %}