templates/Partial/demandes.html.twig line 1

Open in your IDE?
  1. <div id="search-form" class="page">
  2. <div class="container">
  3. <div class="demandes-form row">
  4. {% form_theme form 'Form/exacompare.html.twig' %}
  5. {{ form_start(form, {'attr': {'class': 'demandes-form form'}}) }}
  6. {{ form_row(form.cat, {'row_class': 'col-sm-4'}) }}
  7. {{ form_row(form.dept, {'row_class': 'col-sm-4'}) }}
  8. <div class="form-submit col-sm-4">
  9. {{ form_row(form.submit) }}
  10. </div>
  11. {{ form_end(form) }}
  12. </div>
  13. </div>
  14. </div>
  15. <!-- DEBUG SLOTE -->
  16. {% if data != null %}
  17. <div id="devis-list" class="page file container">
  18. <div class="row">
  19. {{ knp_pagination_render(data, 'Partial/pagination.html.twig') }}
  20. {% if not data is empty %}
  21. <div class="table-responsive">
  22. <table class="striped">
  23. <thead>
  24. <tr>
  25. <th>Date</th>
  26. <th>Numéro</th>
  27. <th>Catégorie</th>
  28. <th>Localisation</th>
  29. <th>Date limite</th>
  30. <th></th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. {% for d in data %}
  35. <tr>
  36. <td>{{ d.creationDate|date('d/m/Y') }}</td>
  37. <td>{{ d.id }}</td>
  38. <td>{% if d.categorie %}{{ d.categorie.group }}<br />{{ d.categorie }}{% endif %}</td>
  39. <td>{{ d.bienCodePostal }} {{ d.bienVille }}</td>
  40. <td class="expiration-date">{{ d.expiration|date('d/m/Y') }}</td>
  41. <td>
  42. <a class="button" href="{{ entity_url(d) }}" rel="nofollow" class="demande-fiche">Voir</a>
  43. </td>
  44. </tr>
  45. {% endfor %}
  46. </tbody>
  47. </table>
  48. </div>
  49. {% else %}
  50. <div class="empty-result">
  51. {% import _self as macros %}
  52. {{ macros.search_criteria(form) }}
  53. </div>
  54. {% endif %}
  55. {{ knp_pagination_render(data, 'Partial/pagination.html.twig') }}
  56. <!-- </div>
  57. </div> -->
  58. {% else %}
  59. <div id="content">
  60. <div id="demande" class="error-page container">
  61. <div class="row">
  62. <div class="col-sm-12">
  63. <p>Aucun résultat.</p>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. {% endif %}