templates/savoir_technologique/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}SavoirTechnologique index{% endblock %}
  3. {% block stylesheets %}
  4.     <!--begin::Page Custom Javascript(used by this page)-->
  5.     <link href="{{ asset("theme/plugins/custom/datatables/datatables.bundle.css") }}" rel="stylesheet" type="text/css" />
  6.     <!--end::Page Custom Javascript-->
  7.     {{ parent() }}
  8. {% endblock %}
  9. {% block javascripts %}
  10.     {{ parent() }}
  11.     <!--begin::Page Custom Javascript(used by this page)-->
  12.     <script src="{{ asset("theme/plugins/custom/datatables/datatables.bundle.js") }}"></script>
  13.     <!--end::Page Custom Javascript-->
  14.     <script>
  15.         $("#kt_datatable_example_1").DataTable();
  16.         var element = document.querySelector("#kt_stepper_example_basic");
  17.         // Initialize Stepper
  18.         var stepper = new KTStepper(element);
  19.     </script>
  20. {% endblock %}
  21. {% block body %}
  22.     <!--begin::Engage Widget 1-->
  23.     <div class="card card-xxl-stretch">
  24.         <div class="card-header">
  25.             <h3 class="card-title">Gestion des savoirs technologiques</h3>
  26.             <div class="card-toolbar">
  27.             </div>
  28.         </div>
  29.         <!--begin::Card body-->
  30.         <div class="card-body d-flex flex-column justify-content-between h-100">
  31.             <!--begin::Section-->
  32.             <div class="pt-12">
  33.                 <!--begin::Action-->
  34.                 <table id="kt_datatable_example_1" class="table table-striped table-row-bordered gy-5 gs-7">
  35.                     <thead>
  36.                     <tr>
  37.                         <th>Id</th>
  38.                         <th>Libelle</th>
  39.                         <th>actions</th>
  40.                     </tr>
  41.                     </thead>
  42.                     <tbody>
  43.                     {% for savoir_technologique in savoir_technologiques %}
  44.                         <tr>
  45.                             <td>{{ savoir_technologique.id }}</td>
  46.                             <td>{{ savoir_technologique.libelle }}</td>
  47.                             <td>
  48.                                 <a href="{{ path('app_savoir_technologique_show', {'id': savoir_technologique.id}) }}">show</a>
  49.                                 <a href="{{ path('app_savoir_technologique_edit', {'id': savoir_technologique.id}) }}">edit</a>
  50.                             </td>
  51.                         </tr>
  52.                     {% else %}
  53.                         <tr>
  54.                             <td colspan="3">no records found</td>
  55.                         </tr>
  56.                     {% endfor %}
  57.                     </tbody>
  58.                 </table>
  59.                 <!--end::Action-->
  60.             </div>
  61.             <!--end::Section-->
  62.         </div>
  63.         <!--end::Card body-->
  64.     </div>
  65.     <!--end::Engage Widget 1-->
  66.     <a href="{{ path('app_savoir_technologique_new') }}">Create new</a>
  67. {% endblock %}