templates/school_year/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/backEndLayout.html.twig' %}
  2. {% block content %}
  3.   
  4.     
  5.         <div class="row mt-4">
  6.             <div class="col-1" >
  7.                 <a class="btn btn-info" href="{{ path('admin_schoolyears_new') }}">
  8.                     <i class="fa fa-plus"></i> 
  9.                 </a>
  10.             </div>
  11.             <div class="col-11 jumbotron" >
  12.                 <div class="m-1 box-shadow">
  13.                     <div class="card-header">
  14.                                         <h4 class="my-0 font-weight-normal text-center text-justify text-uppercase"> Liste des Annees scolaires configurees </h4>
  15.                     </div>
  16.                     <table  width="100%" class="table table-striped">
  17.                         <thead>
  18.                             <tr>
  19.                                 
  20.                                 <th>Label</th>
  21.                                   <th>code</th>
  22.                                 <th>Debut</th>
  23.                                 <th>Delai d'inscription</th>
  24.                                 <th>Fin</th>
  25.                                 <th>Taux d'inscription</th>
  26.                                 <th>Etat</th>
  27.                                 <th>Action</th>
  28.                             </tr>
  29.                         </thead>
  30.                         <tbody>
  31.                             {% for schoolyear in schoolyears %}
  32.                                 <tr>
  33.                                 
  34.                                     <td><a href="{{ path('admin_schoolyears_show', {id: schoolyear.id}) }}">  {{ schoolyear.wording }}<i class="fa fa-eye"></i></a> </td>
  35.                                     <td>{{  schoolyear.code }} </td>
  36.                                     <td>{% if schoolyear.startDate %}{{ schoolyear.startDate|date('Y-m-d') }}{% endif %}</td>
  37.                                     <td>{% if schoolyear.registrationDeadline %}{{ schoolyear.registrationDeadline|date('Y-m-d') }}{% endif %}</td>
  38.                                     <td>{% if schoolyear.endDate %}{{ schoolyear.endDate|date('Y-m-d') }}{% endif %}</td>
  39.                                     <td>{% if schoolyear.rate %}{{ schoolyear.rate }}{% endif %}</td>
  40.                                 
  41.                                     <td>{% if schoolyear.activated %}<i class="fa fa-check-square-o"></i>{% else %}<i class="fa fa-square-o"></i>{% endif %}</td>
  42.                                     <td>
  43.                                         <div class="btn-group">
  44.                                             <a class="btn btn-outline-info" href="{{ path('admin_schoolyears_show', {id: schoolyear.id}) }}">
  45.                                                 <i class="fa fa-eye"></i> 
  46.                                             </a>
  47.                                             <a class="btn btn-outline-warning" href="{{ path('admin_schoolyears_edit', {id: schoolyear.id}) }}">
  48.                                                 <i class="fa fa-edit"></i> 
  49.                                             </a>
  50.                                             
  51.                                         </div>
  52.                                     </td>
  53.                                 </tr>
  54.                             {% endfor %}
  55.                         </tbody>
  56.                     </table>
  57.                  </div>
  58.             </div>
  59.             
  60.         </div>
  61.    
  62. {% endblock %}