templates/salarie/gestion_salarie/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}RH - Gestion des salaries{% endblock %}
  3. {% block body %}
  4.   {# <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> #}
  5.     <style>
  6.          /* Add custom row colors */
  7.         {# .table tbody tr:nth-child(odd) {
  8.             background-color: #f2f2f2;
  9.         } #}
  10.         /* Style contract icons */
  11.         .checked-icon {
  12.             color: green;
  13.         }
  14.         .unchecked-icon {
  15.             color: red;
  16.         }
  17.         /* Centered vertical alignment for contract icons */
  18.         {# .contract-cell {
  19.             display: flex;
  20.             align-items: center;
  21.         } #}
  22.         /* Style text in specific columns */
  23.         {# .table td:nth-child(4) {
  24.             font-weight: bold;
  25.             color: blue;
  26.         }
  27.         .table td:nth-child(5) {
  28.             font-style: italic;
  29.             color: purple;
  30.         } #}
  31.        
  32. </style>
  33. {# //////////////////////////////////////////// #}
  34.     {% include 'includes/actions.html.twig' %}
  35.         <div class="col-12 mb-4">
  36.             <div class="card  border-0 shadow">
  37.                 <div class="card-body p-2 m-2">
  38.                   
  39.                     <table id="example" class="table table-bordered table-striped" style="width:100%">
  40.                     <thead>
  41.                         <tr>
  42.                             <th>Id employe</th>
  43.                             <th>Id contract</th>
  44.                             <th>Nom</th>
  45.                             <th>Prenom</th>
  46.                             <th>CIN</th>
  47.                             <th>Contract</th>
  48.                             <th>Nature contrat</th>
  49.                             <th></th>
  50.                         </tr>
  51.                     </thead>
  52.                     <tbody>
  53.                         
  54.                     </tbody>
  55.                 </table>
  56.             </div>
  57.         </div>
  58.     </div>
  59. {# //////////////////////////////////////////// #}
  60.     {# {% include 'salarie/gestion_salarie/modals/contract_detail.html.twig' %} #}
  61. <div class="modal right come-from-modal fade" id="contractModal"  role="dialog" aria-labelledby="contractModalLabel" style="display: none;" aria-hidden="true">
  62.     <div class="modal-dialog" role="document" style="width:40%;max-width:1000px !important">
  63.         <div class="modal-content">
  64.             <div class="modal-header">
  65.                 <h5 class="modal-title" id="contractModalLabel">Detail contrats </h5>
  66.                 
  67.                 <a type="button" class="btn-close" data-bs-dismiss="modal" data-dismiss="modal" aria-label="Close"></a>
  68.             </div>
  69.             
  70.             
  71.             <div class="modal-body">
  72.                 <table class="table table-bordered table-striped" id="contrat_list_details">
  73.                     <thead>
  74.                         <tr>
  75.                             <th>Contrat</th>
  76.                             <th>Nature contrat</th>
  77.                             <th>Type contract</th>
  78.                             <th width="20%"></th>
  79.                         </tr>
  80.                     </thead>
  81.                     <tbody id="contract_body">
  82.                      
  83.                     </tbody>
  84.                 </table>
  85.             </div>
  86.             <div class="modal-footer">
  87.                 <button type="button" class="btn btn-secondary contractdetbtn" data-dismiss="modal">Close</button>
  88.             </div>
  89.         </div>
  90.     </div>
  91. </div>
  92.     {% include 'salarie/gestion_salarie/modals/ajouter.html.twig' %}
  93.     {% include 'salarie/gestion_salarie/modals/ajouter_for_exist.html.twig' %}
  94.     {% include 'salarie/gestion_salarie/modals/modifier.html.twig' %}
  95.     {% include 'salarie/gestion_salarie/modals/desactiver.html.twig' %}
  96.     {% include 'salarie/gestion_salarie/modals/reaffectation.html.twig' %}
  97.     {% include 'salarie/gestion_salarie/modals/attestation.html.twig' %}
  98.     {% include 'salarie/gestion_salarie/modals/sortant_en_masse.html.twig' %}
  99. {% endblock %}
  100. {% block javascripts %}
  101.     {{parent()}}
  102.     {{ encore_entry_script_tags('salarie_salarie') }}
  103. {% endblock %}