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.

57 lines
2.0KB

  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-6">
  9. {{ form_errors(form) }}
  10. {{ form_widget(form.search, {'attr': {'class': 'input-search'}}) }}
  11. </div>
  12. <div class="col">
  13. {{ macro.dropdown_search(form.category) }}
  14. </div>
  15. <div class="col">
  16. {{ macro.dropdown_search(form.thematic) }}
  17. </div>
  18. <div class="col">
  19. {{ macro.dropdown_search(form.territory) }}
  20. </div>
  21. <div class="col">
  22. {{ form_row(form.search_button, { 'label': 'Rechercher' }) }}
  23. </div>
  24. </div>
  25. {{ form_end(form) }}
  26. <div class="row">
  27. <div class="col">
  28. <a href="" class="export export-excel" title="Exporter Excel">Exporter au format Excel</a>
  29. <a href="" class="export export-pdf" title="Exporter au format PDF">Exporter au format PDF</a>
  30. </div>
  31. </div>
  32. {% if resultArray %}
  33. <table class="table-search">
  34. <thead>
  35. <tr>
  36. <th>Catégorie</th>
  37. <th>Thématique</th>
  38. <th>Contribution</th>
  39. <th>Lieu</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {% for result in resultArray %}
  44. <tr>
  45. <td>{{ result }}</td>
  46. <td>{{ result }}</td>
  47. <td>{{ result }}</td>
  48. <td>{{ result }}</td>
  49. </tr>
  50. {% endfor %}
  51. </tbody>
  52. </table>
  53. {% endif %}
  54. </div>
  55. {% endblock %}