{% extends 'base.html.twig' %}
{% block title %}PeriodeType index{% endblock %}
{% block stylesheets %}
<!--begin::Page Custom Javascript(used by this page)-->
<link href="{{ asset("theme/plugins/custom/datatables/datatables.bundle.css") }}" rel="stylesheet" type="text/css" />
<!--end::Page Custom Javascript-->
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<!--begin::Page Custom Javascript(used by this page)-->
<script src="{{ asset("theme/plugins/custom/datatables/datatables.bundle.js") }}"></script>
<!--end::Page Custom Javascript-->
<script>
$("#kt_datatable_example_1").DataTable();
var element = document.querySelector("#kt_stepper_example_basic");
// Initialize Stepper
var stepper = new KTStepper(element);
</script>
{% endblock %}
{% block body %}
<!--begin::Engage Widget 1-->
<div class="card card-xxl-stretch">
<div class="card-header">
<h3 class="card-title">Gestion des types de périodes</h3>
<div class="card-toolbar">
</div>
</div>
<!--begin::Card body-->
<div class="card-body d-flex flex-column justify-content-between h-100">
<!--begin::Section-->
<div class="pt-12">
<!--begin::Action-->
<table id="kt_datatable_example_1" class="table table-striped table-row-bordered gy-5 gs-7">
<thead>
<tr>
<th>Id</th>
<th>Libelle</th>
<th>AvoirCours</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for periode_type in periode_types %}
<tr>
<td>{{ periode_type.id }}</td>
<td>{{ periode_type.libelle }}</td>
<td>{{ periode_type.avoirCours ? 'Yes' : 'No' }}</td>
<td>
<a href="{{ path('app_periode_type_show', {'id': periode_type.id}) }}">show</a>
<a href="{{ path('app_periode_type_edit', {'id': periode_type.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<!--end::Action-->
</div>
<!--end::Section-->
</div>
<!--end::Card body-->
</div>
<!--end::Engage Widget 1-->
<a href="{{ path('app_periode_type_new') }}">Create new</a>
{% endblock %}