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>Elève</th>
  18. <th>Classe</th>
  19. <th>Année scolaire</th>
  20. <th>Frais</th>
  21. <th>Réduction</th>
  22. <th>Action</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. {% for sub in subscriptions|reverse %}
  27. {% if sub.student is defined and sub.student is not empty %}
  28. <tr>
  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 class="qty">{{sub.amount }}</td>
  33. <td class="qty">{{sub.discount }}</td>
  34. <td>
  35. <div class="btn-group">
  36. <a class="btn btn-outline-primary" href="{{ path('admin_subscriptions_show', {id:sub.id}) }}">
  37. <i class="fa fa-eye"></i>
  38. </a>
  39. <a class="btn btn-outline-warning" href="{{ path('admin_subscriptions_edit', {id: sub.id}) }}">
  40. <i class="fa fa-edit"></i>
  41. </a>
  42. </div>
  43. </td>
  44. </tr>
  45. {% endif %}
  46. {% endfor %}
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. </div>
  52. {% endblock %}