templates/frontend/phone_book/index.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend/base.html.twig' %}
  2. {% block title %}Annuaire des adhérents{% endblock %}
  3. {% block body %}
  4.     <div class="card">
  5.         <div class="card-header">
  6.             <h2>Annuaire des adhérents ({{ firms.getTotalItemCount }})</h2>
  7.         </div>
  8.         <div class="card-body">
  9.             <div class="mb-4">
  10.                 {{ form_start(form) }}
  11.                 {{ form_row(form.search) }}
  12.                 <div class="text-end">
  13.                     <button type="submit" class="btn btn-primary btn-radius btn-icon">
  14.                         <i class="fas fa-search"></i>
  15.                     </button>
  16.                     <a href="{{ path('customer_phone_book') }}" class="btn btn-outline-primary btn-radius">
  17.                         Réinitialiser
  18.                     </a>
  19.                 </div>
  20.                 {{ form_end(form) }}
  21.             </div>
  22.             <div class="table-responsive">
  23.                 <table class="table">
  24.                     <thead>
  25.                         <tr>
  26.                             <th>Entreprise</th>
  27.                             <th>Téléphone</th>
  28.                             <th>Email</th>
  29.                             <th>Adresse</th>
  30.                             <th>Contact responsable</th>
  31.                             <th>Contact responsable tél.</th>
  32.                             <th>Contact responsable email</th>
  33.                         </tr>
  34.                     </thead>
  35.                     <tbody>
  36.                         {% for firm in firms %}
  37.                             {% set contact = firm.contactResponsableInContacts %}
  38.                             <tr>
  39.                                 <td>{{ firm.raisonSocial }}</td>
  40.                                 <td>{{ firm.tel1 }}</td>
  41.                                 <td>{{ firm.email }}</td>
  42.                                 <td>
  43.                                     {{ firm.adresse }}<br>
  44.                                     {{ firm.adresse2 ? firm.adresse2 ~ '<br>' }}
  45.                                     {{ firm.codePostal }}<br>
  46.                                     {{ firm.ville }}<br>
  47.                                 </td>
  48.                                 <td>{{ contact ? contact.fullname : '' }}</td>
  49.                                 <td>{{ contact ? contact.telPortable : '' }}</td>
  50.                                 <td>{{ contact ? contact.emailContact : '' }}</td>
  51.                             </tr>
  52.                         {% endfor %}
  53.                     </tbody>
  54.                 </table>
  55.                 <div class="navigation mt-5 float-end">
  56.                     {{ knp_pagination_render(firms) }}
  57.                 </div>
  58.             </div>
  59.         </div>
  60.     </div>
  61. {% endblock %}