templates/StructuresCategories/list.html.twig line 1

Open in your IDE?
  1. <table >
  2.     <thead>
  3.     <tr>
  4.         <th>ID</th>
  5.         <th>Nom</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>{{ o.id }}</td>
  12.         <td class="noactions">{{ o.label }}</td>
  13.         <td>
  14.            <a href="{{url('structurescategories-edit',{'id':o.id})}}" title="Modifier" class="action fas fa-edit btn-edit"></a>
  15.            <a href="{{path('structurescategories-enable',{id:o.id})}}" class="action btn-flash fa {{ o.isEnabled ? 'fa-times' : 'fa-check' }}" title="{{ o.isEnabled ? 'Désactiver' : 'Activer' }}"></a>
  16.         </td>
  17.     </tr>
  18.     {% endfor %}
  19. </table>