templates/subscription/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/backEndLayout.html.twig' %}
  2. {% block content %}
  3. <div class="row mt-4">
  4. <div class="col-lg-1" >
  5. <a class="btn btn-info" href="{{ path('admin_subscriptions_new') }}">
  6. <i class="fa fa-plus"></i> <h1>New </h1>
  7. </a>
  8. </div>
  9. <div class="col-11 jumbotron" >
  10. <div class="m-1 box-shadow">
  11. <div class="card-header">
  12. <h4 class="my-0 font-weight-normal text-center text-justify text-uppercase"> Liste des inscriptions </h4>
  13. </div>
  14. <table width="100%" class="table table-striped">
  15. <thead>
  16. <tr>
  17. <th>N°</th>
  18. <th>Elève</th>
  19. <th>Classe</th>
  20. <th>Année scolaire</th>
  21. <th>Action</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {% for sub in subscriptions|reverse %}
  26. {% if sub.student is defined and sub.student is not empty %}
  27. <tr>
  28. <td class="qty">{{loop.index }}</td>
  29. <td><a href="{{ path('admin_students_show', {id: sub.student.id}) }}">{{ sub.student }}</a></td>
  30. <td><a href="{{ path('admin_classrooms_show', {id: sub.classroom.id}) }}">{{ sub.classroom }}</a></td>
  31. <td><a href="{{ path('admin_schoolyears_edit', {id: sub.schoolyear.id}) }}">{{ sub.schoolyear }}</a></td>
  32. <td>
  33. <div class="btn-group">
  34. <a class="btn btn-outline-primary" href="{{ path('admin_subscriptions_show', {id:sub.id}) }}">
  35. <i class="fa fa-eye"></i>
  36. </a>
  37. <a class="btn btn-outline-warning" href="{{ path('admin_subscriptions_edit', {id: sub.id}) }}">
  38. <i class="fa fa-edit"></i>
  39. </a>
  40. </div>
  41. </td>
  42. </tr>
  43. {% endif %}
  44. {% endfor %}
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. </div>
  50. {% endblock %}