templates/subscription/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-lg-1" >
  7.                 <a class="btn btn-info" href="{{ path('admin_subscriptions_new') }}">
  8.                     <i class="fa fa-plus"></i> <h1>New </h1>
  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 inscriptions </h4>
  15.                     </div>
  16.                 <table  width="100%" class="table table-striped">
  17.                     <thead>
  18.                         <tr>
  19.                             <th>N°</th>
  20.                             <th>Elève</th>
  21.                             <th>Classe</th>
  22.                             <th>Année scolaire</th>
  23.                             <th>Action</th>
  24.                         </tr>
  25.                     </thead>
  26.                     <tbody>
  27.                         {% for sub in subscriptions|reverse %}
  28.                             {% if sub.student is defined and sub.student is not empty %}
  29.                             <tr>
  30.                                  <td class="qty">{{loop.index  }}</td>
  31.                                  <td><a href="{{ path('admin_students_show', {id: sub.student.id}) }}">{{ sub.student }}</a></td>
  32.                                  <td><a href="{{ path('admin_classrooms_show', {id: sub.classroom.id}) }}">{{ sub.classroom }}</a></td>
  33.                                 <td><a href="{{ path('admin_schoolyears_edit', {id: sub.schoolyear.id}) }}">{{ sub.schoolyear }}</a></td>
  34.                                 
  35.                                 <td>
  36.                                     <div class="btn-group">
  37.                                         <a class="btn btn-outline-primary"  href="{{ path('admin_subscriptions_show', {id:sub.id}) }}">
  38.                                              <i class="fa fa-eye"></i>
  39.                                           </a>
  40.                                         <a class="btn btn-outline-warning"  href="{{ path('admin_subscriptions_edit', {id: sub.id}) }}">
  41.                                             <i class="fa fa-edit"></i> 
  42.                                         </a>
  43.                                       
  44.                                     </div>
  45.                                 </td>
  46.                             </tr>
  47.                             {% endif %}
  48.                         {% endfor %}
  49.                     </tbody>
  50.                 </table>
  51.             </div>
  52.         </div>
  53.     </div>
  54. {% endblock %}