templates/Opportunities/list.html.twig line 21

  1. <table >
  2.     <thead>
  3.     <tr>
  4.         <th>ID</th>
  5.         <th>Titre</th>
  6.         <th>Infos</th>
  7.         <th>Dates</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>{{ o.id }}</td>
  14.         <td class="semibold h4">{{ o.title }}</td>
  15.         <td class="nowrap">
  16.             Catégorie : {{ o.category }}
  17.             <br>Type : {{ o.type }}
  18.             <br>Secteur : {{ o.sector }}
  19.         </td>
  20.         <td class="nowrap">
  21.             Ouverture : {{ o.openingDate|frdatetime }}
  22.             <br>Clôture : {{ o.closingDate|frdatetime}}
  23.         </td>
  24.         <td>
  25.            <a href="{{path('opportunities-edit',{'id':o.id})}}" title="Modifier" class="action fas fa-edit btn-edit"></a>
  26.            <a href="{{path('opportunities-enable',{id:o.id})}}" class="action btn-flash fa {{ o.isEnabled ? 'fa-times' : 'fa-check' }}" title="{{ o.isEnabled ? 'Désactiver' : 'Activer' }}"></a>
  27.         </td>
  28.     </tr>
  29.     {% endfor %}
  30. </table>