templates/Registrations/list.html.twig line 1

Open in your IDE?
  1. {% import "Admin/Macros/action.html.twig"  as action %}
  2. {% import "Admin/Macros/statusIcon.html.twig"  as statusIcon %}
  3. {% import "Admin/Macros/cellBackground.html.twig"  as cellBackground %}
  4. <table style="border-spacing: 0px 15px">
  5.     <thead>
  6.     <tr>
  7.         <th class=""></th>
  8.         <th>Nom et Prénoms</th>
  9.         <th>Formation</th>
  10.         <th>Contacts</th>
  11.         <th>Actions</th>
  12.     </tr>
  13.     </thead>
  14.     {% for o in list %}
  15.     <tr>
  16.         <td class="noid relative left-15-in border-left border-5x border-solid" style="border-color: {{o.status ? o.status.color : '#fff'}}">
  17.             {{cellBackground.render(o.status)}}
  18.             {{statusIcon.render(o.status)}}
  19.         </td>
  20.         <td class="relative vt-15-in">
  21.             <div class="flex col left relative">
  22.                 <span class="bold success">{{o.sex ? "Monsieur" : "Madame"}} {{o.lname}} {{o.fname}}</span>
  23.                 <span>{{o.profession.label}}</span>
  24.                 <span>{{o.company.label}}</span>
  25.                 <span class='semibold upper success-alt'>Envoyé le {{date(o.date)|pretty_datetime}}</span>
  26.                 <span class="upper medium white hz-10-in vt-3-in top-7 p-alt" style="background: {{o.status ? o.status.color : '#fff'}}">{{o.status ? o.status.label : "En attente"}}</span>
  27.             </div>
  28.         </td>
  29.         <td class="relative vt-15-in">
  30.             <div class="flex col left relative">
  31.                 <span class="bold success">{{o.formation.label}}</span>
  32.                 <span>{{o.session ? o.session.label : ""}}</span>
  33.             </div>
  34.         </td>
  35.         <td>
  36.             <span>{{o.email}}</span>
  37.             <br><span>{{o.phone}}</span>
  38.         </td>
  39.         <td>
  40.             {{action.render({link: url('registrations-view',{id:o.id}), color: "white", bg: "success", icon: "eye", type: 'record', title: "Détails de l'inscription"})}}
  41.             {{action.render({link: url('registrations-edit',{id:o.id}), color: "white", bg: "warning", icon: "edit", type: 'popup', title: "Modifier le statut de l'inscription"})}}
  42.         </td>
  43.     </tr>
  44.     {% endfor %}
  45. </table>