templates/room/index.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/base.html.twig' %}
  2. {% block title %}Liste des chambres{% endblock %}
  3. {% block body %}
  4. <section class="mb-3 mb-lg-5">
  5.  <div class="card card-table mb-4">
  6.         <div class="card-header">
  7.             <div class="card-heading">
  8.                 <span>Gestion des chambres </span>
  9.                 <form class="ms-auto me-4 d-none d-lg-block" id="searchForm">
  10.                     <div class="input-group input-group-sm input-group-navbar">
  11.                         <input class="form-control" id="searchInput" type="search" placeholder="Recherche par numéro de chambre,centre,type">
  12.                         <button class="btn" type="button"> <i class="fas fa-search"></i></button>
  13.                     </div>
  14.                 </form>
  15.                 <a href="{{ path('app_room_new') }}">
  16.                 <span class="badge rounded-pill me-2 p-2 bg-primary" style="float:right"> Ajouter une chambre</span>
  17.                 </a>
  18.             </div>
  19.             
  20.         </div>
  21.     <table class="table">
  22.         <thead>
  23.             <tr>
  24.                 <th>Id</th>
  25.                 <th>Nom</th>
  26.                 <th>Description</th>
  27.                 <th>Nombre de personne</th>
  28.                 <th>Numéro</th>
  29.                 <th>Type</th>
  30.                 <th>Détails</th>
  31.                 <th>Modifier</th>
  32.             </tr>
  33.         </thead>
  34.         <tbody>
  35.         {% for room in rooms %}
  36.             <tr>
  37.                 <td>{{ room.id }}</td>
  38.                 <td>{{ room.name }}</td>
  39.                 <td>{{ room.description }}</td>
  40.                 <td>{{ room.nbrOfPerson }}</td>
  41.                 <td>{{ room.number }}</td>
  42.                 <td>{{ room.type }}</td>
  43.                 <td>
  44.                     <a href="{{ path('app_room_show', {'id': room.id}) }}">
  45.                         <svg class="svg-icon svg-icon-md me-3">
  46.                             <svg class="theme-line-0"><use xlink:href="{{asset('icons/orion-svg-sprite.svg#find-1')}}"></use></svg>
  47.                         </svg>
  48.                     </a>
  49.                 </td>
  50.                 <td>
  51.                     <a href="{{ path('app_room_edit', {'id': room.id}) }}">
  52.                         <svg class="svg-icon svg-icon-md me-3">
  53.                             <svg class="theme-line-0"><use xlink:href="{{asset('icons/orion-svg-sprite.svg#pencil-1')}}"></use></svg>
  54.                         </svg>
  55.                     
  56.                     </a>
  57.                 </td>
  58.             </tr>
  59.         {% else %}
  60.             <tr>
  61.                 <td colspan="11">Pas de chambres</td>
  62.             </tr>
  63.         {% endfor %}
  64.         </tbody>
  65.     </table>
  66.     
  67. </section>
  68. {% endblock %}