templates/computing/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Calculs{% endblock %}
  3. {% block body %}
  4.     <div class="row">
  5.         <div class="col-12">
  6.             <div class="card">
  7.                 <div class="card-body">
  8.             <h1>Liste des calculs</h1>
  9.             <table class="table">
  10.                 <thead>
  11.                     <tr>
  12.                         <th>Titre</th>
  13.                         <th>Adresse</th>
  14.                         <th>Date/Horaire <br/> <small>choisi pour le calcul</small></th>
  15.                         <th>Statut</th>
  16.                         <th>Actions</th>
  17.                     </tr>
  18.                 </thead>
  19.                 <tbody>
  20.                 {% for computing in computings %}
  21.                     <tr>
  22.                         <td>{{ computing.Title }}</td>
  23.                         <td>{{ computing.Addresse }}</td>
  24.                         <td>{% if computing.departureDateTime is not null %}{{ computing.departureDateTime.format('d M à H:i') }}{% endif %}</td>
  25.                         <td>
  26.                                 <span class="badge rounded-pill  {{ computing.getStatusDisplayCatergory }} font-size-13">{{ computing.getStatusTextInfo }}</span>
  27.                         <td>
  28.                             <a href="{{ path('app_computing_show', {'id': computing.id}) }}" title="Voir les résultats"><i style="font-size: 24px" class="mdi mdi-format-list-bulleted-square"></i></a>
  29.                             <a href="{{ path('app_computing_edit', {'id': computing.id}) }}" title="Editer"><i style="font-size: 24px" class="mdi mdi-square-edit-outline"></i></a>
  30.                             <a href="{{ path('app_computing_compute', {'id': computing.id}) }}" title="Lancer le calcul"><i style="font-size: 24px" class="mdi mdi-settings-transfer-outline"></i></a>
  31.                             <form style="display: inline-block" method="post" action="{{ path('app_computing_delete', {'id': computing.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');" id=deleteForm_{{ computing.id }} name="deleteForm_{{ computing.id }}">
  32.                                 <input type="hidden" name="_token" value="{{ csrf_token('delete' ~ computing.id) }}">
  33.                                 <a href="javascript: if(confirm('Are you sure you want to delete this item?') == true){ document.forms['deleteForm_{{ computing.id }}'].submit();}" ><i style="font-size: 24px" class="mdi mdi-delete-forever"></i></a>
  34.                             </form>
  35.                         </td>
  36.                     </tr>
  37.                 {% else %}
  38.                     <tr>
  39.                         <td colspan="7">Aucun calcul trouvé</td>
  40.                     </tr>
  41.                 {% endfor %}
  42.                 </tbody>
  43.             </table>
  44.             <a href="{{ path('app_computing_new') }}" class="btn btn-primary">Générer un calcul</a>
  45.                 </div>
  46.             </div>
  47.         </div>
  48.     </div>
  49. {% endblock %}