templates/Projects/list.html.twig line 1

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