templates/Formations/list.html.twig line 1

Open in your IDE?
  1. <table>
  2.     <thead>
  3.     <tr>
  4.         <th>N°</th>
  5.         <th>Intitulé</th>
  6.         <th>Actions</th>
  7.     </tr>
  8.     </thead>
  9.     {% for o in list %}
  10.     <tr data-enabled="{{o.isEnabled is not same as (null) ? o.isEnabled == 1 ? 1 : 0 : ''}}">
  11.         <td>{{loop.revindex}}</td>
  12.         <td>
  13.             {{o.label}}
  14.         </td>
  15.         <td>
  16.             <a href="{{url('formations-edit',{'id':o.id})}}" title="Modifier" class="action fas fa-edit btn-popup semi"></a>
  17.             <a href="{{path('formations-enable',{id:o.id})}}" class="action btn-flash fa {{ o.isEnabled ? 'fa-times' : 'fa-check' }}" title="{{ o.isEnabled ? 'Désactiver' : 'Activer' }}"></a>
  18.         </td>
  19.     </tr>
  20.     {% endfor %}
  21. </table>