templates/app/cotations-multisites/list.html.twig line 1

Open in your IDE?
  1. {% extends "app/base.html.twig" %}
  2. {% block title %}{{ parent() }} - {{ title }}{% endblock %}
  3. {% block body %}
  4. <div class="content flex-row-fluid">
  5. <div class="row gy-0 gx-10">
  6. <div class="col-12">
  7. <div class="card border-0 mb-8">
  8. <div class="card-body py-4">
  9. <ol class="breadcrumb text-muted fs-6 fw-semibold">
  10. <li class="breadcrumb-item"><a href="{{ path('manager_homepage') }}" class=""><i class="fa fa-home text-primary"></i></a></li>
  11. <li class="breadcrumb-item text-muted">{{ title }}</li>
  12. </ol>
  13. </div>
  14. </div>
  15. <div class="card card-flush h-lg-100">
  16. <div class="card-header pt-7">
  17. <div class="card-title">
  18. <span class="svg-icon svg-icon-1 me-2">
  19. <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
  20. <path opacity="0.3" d="M3 3V17H7V21H15V9H20V3H3Z" fill="black"/>
  21. <path d="M20 22H3C2.4 22 2 21.6 2 21V3C2 2.4 2.4 2 3 2H20C20.6 2 21 2.4 21 3V21C21 21.6 20.6 22 20 22ZM19 4H4V8H19V4ZM6 18H4V20H6V18ZM6 14H4V16H6V14ZM6 10H4V12H6V10ZM10 18H8V20H10V18ZM10 14H8V16H10V14ZM10 10H8V12H10V10ZM14 18H12V20H14V18ZM14 14H12V16H14V14ZM14 10H12V12H14V10ZM19 14H17V20H19V14ZM19 10H17V12H19V10Z" fill="black"/>
  22. </svg>
  23. </span>
  24. <h2>{{ title }}</h2>
  25. </div>
  26. <div>
  27. <input id="datatable-search" type="text" name="search" class="form-control me-3" placeholder="Recherche" value="{{ app.request.get("search") }}"/>
  28. </div>
  29. </div>
  30. <div class="card-body pt-5">
  31. <div class="card card-flush h-lg-100">
  32. <div class="table-responsive">
  33. <table id="datatable-async" class="table table-striped gy-7 gs-7">
  34. <thead>
  35. <tr class="fw-bold fs-6 text-gray-800 border-bottom-2 border-gray-200">
  36. <th>Client</th>
  37. {% if app.user.manager.admin or app.user.manager.hasTeamMember %}<th>Commercial</th>{% endif %}
  38. <th>Date</th>
  39. <th>Gaz</th>
  40. <th>Électricité</th>
  41. <th>Statut</th>
  42. <th></th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {% for cotation in cotations_paginator.items %}
  47. <tr>
  48. <td>
  49. <b>{{ cotation.companyName }}</b><br/>
  50. {{ cotation.firstName }} {{ cotation.lastName }}<br/>
  51. {% if cotation.company and cotation.company.apeCode %}
  52. NAF {{ cotation.company.apeCode }}
  53. {% endif %}
  54. {% if cotation.name %}
  55. <br/><br/>
  56. <u>Référence</u> : {{ cotation.name }}
  57. {% endif %}
  58. </td>
  59. {% if app.user.manager.admin or app.user.manager.hasTeamMember %}<td>{{ cotation.manager.firstName }} {{ cotation.manager.lastName }}</td>{% endif %}
  60. <td>{{ cotation.creationDate|date("d/m/Y") }}</td>
  61. <td>
  62. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" >
  63. <g stroke="none" stroke-width="1" fill="{% if cotation.gas %}#1BC5BD{% else %}#F64E60{% endif %}" fill-rule="evenodd">
  64. <circle cx="8" cy="8" r="8"></circle>
  65. </g>
  66. </svg>
  67. </td>
  68. <td>
  69. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" >
  70. <g stroke="none" stroke-width="1" fill="{% if cotation.electricity %}#1BC5BD{% else %}#F64E60{% endif %}" fill-rule="evenodd">
  71. <circle cx="8" cy="8" r="8"></circle>
  72. </g>
  73. </svg>
  74. </td>
  75. <td>{{ cotation.state }}</td>
  76. <td>
  77. {% if app.user.manager.admin %}
  78. <a href="{{ path('manager_companies_cotations_delete', {company: cotation.company.id, cotation: cotation.id}) }}" onclick="return confirm('Voulez-vous vraiment supprimer cette cotation ?')" class="btn btn-icon btn-light btn-sm border-0">
  79. <i class="fa fa-trash me-1 text-primary fs-5"></i>
  80. </a>
  81. {% endif %}
  82. {% if cotation.state.id != 6 %}
  83. <a href="{{ path('manager_companies_cotations-multisites_edit', {company: cotation.company.id, cotation: cotation.id}) }}" class="btn btn-icon btn-light btn-sm border-0">
  84. <i class="fa fa-pen me-1 text-primary fs-5"></i>
  85. </a>
  86. {% endif %}
  87. <a href="{{ path('manager_companies_cotations-multisites', {company: cotation.company.id}) }}" class="btn btn-icon btn-light btn-sm border-0">
  88. <i class="fa fa-arrow-right me-1 text-primary fs-5"></i>
  89. </a>
  90. </td>
  91. </tr>
  92. {% endfor %}
  93. </tbody>
  94. </table>
  95. </div>
  96. <div class="custom-pagination my-8">
  97. {{ knp_pagination_render(cotations_paginator) }}
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. {% endblock %}