{% extends 'base.html.twig' %}
{% block title %}RH - Gestion des salaries{% endblock %}
{% block body %}
{# <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> #}
<style>
/* Add custom row colors */
{# .table tbody tr:nth-child(odd) {
background-color: #f2f2f2;
} #}
/* Style contract icons */
.checked-icon {
color: green;
}
.unchecked-icon {
color: red;
}
/* Centered vertical alignment for contract icons */
{# .contract-cell {
display: flex;
align-items: center;
} #}
/* Style text in specific columns */
{# .table td:nth-child(4) {
font-weight: bold;
color: blue;
}
.table td:nth-child(5) {
font-style: italic;
color: purple;
} #}
</style>
{# //////////////////////////////////////////// #}
{% include 'includes/actions.html.twig' %}
<div class="col-12 mb-4">
<div class="card border-0 shadow">
<div class="card-body p-2 m-2">
<table id="example" class="table table-bordered table-striped" style="width:100%">
<thead>
<tr>
<th>Id employe</th>
<th>Id contract</th>
<th>Nom</th>
<th>Prenom</th>
<th>CIN</th>
<th>Contract</th>
<th>Nature contrat</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
{# //////////////////////////////////////////// #}
{# {% include 'salarie/gestion_salarie/modals/contract_detail.html.twig' %} #}
<div class="modal right come-from-modal fade" id="contractModal" role="dialog" aria-labelledby="contractModalLabel" style="display: none;" aria-hidden="true">
<div class="modal-dialog" role="document" style="width:40%;max-width:1000px !important">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="contractModalLabel">Detail contrats </h5>
<a type="button" class="btn-close" data-bs-dismiss="modal" data-dismiss="modal" aria-label="Close"></a>
</div>
<div class="modal-body">
<table class="table table-bordered table-striped" id="contrat_list_details">
<thead>
<tr>
<th>Contrat</th>
<th>Nature contrat</th>
<th>Type contract</th>
<th width="20%"></th>
</tr>
</thead>
<tbody id="contract_body">
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary contractdetbtn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
{% include 'salarie/gestion_salarie/modals/ajouter.html.twig' %}
{% include 'salarie/gestion_salarie/modals/ajouter_for_exist.html.twig' %}
{% include 'salarie/gestion_salarie/modals/modifier.html.twig' %}
{% include 'salarie/gestion_salarie/modals/desactiver.html.twig' %}
{% include 'salarie/gestion_salarie/modals/reaffectation.html.twig' %}
{% include 'salarie/gestion_salarie/modals/attestation.html.twig' %}
{% include 'salarie/gestion_salarie/modals/sortant_en_masse.html.twig' %}
{% endblock %}
{% block javascripts %}
{{parent()}}
{{ encore_entry_script_tags('salarie_salarie') }}
{% endblock %}