60 lines
2.3 KiB
Twig
60 lines
2.3 KiB
Twig
{% extends "base.html.twig" %}
|
|
|
|
{% block body %}
|
|
<h1 class="page-header">
|
|
GESTION DES HEURES SUPPLEMENTAIRES
|
|
</h1>
|
|
|
|
<p>
|
|
<a class="btn btn-secondary mr-2" href={{ path('app_tallyday') }}>Retour</a>
|
|
<a class="btn btn-success" href={{ path('app_timeextra_submit') }}>Ajouter</a>
|
|
|
|
|
|
<a class="btn btn-secondary float-right" href={{ path('app_tallyday_masterexport') }}>Export CSV</a>
|
|
<a class="btn btn-secondary float-right mr-2" href={{ path('app_tallyday_masterlist') }}>Gestion des Pointages</a>
|
|
<a class="btn btn-secondary float-right mr-2" href={{ path('app_tallyday_mastermonth',{monthof:"now"|date("Ym")}) }}>Rapport Mensuel</a>
|
|
</p>
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<i class="fa fa-table fa-fw"></i> Liste des Heures Supplémentaires
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
|
|
<thead>
|
|
<tr>
|
|
<th width="70px" class="no-sort">Action</th>
|
|
<th>Utilisateur</th>
|
|
<th>Date</th>
|
|
<th>Nb Minutes</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for timeextra in timeextras %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{path("app_timeextra_update",{id:timeextra.id})}}"><i class="fa fa-file"></i></a>
|
|
</td>
|
|
<td>{{timeextra.user.username}}</td>
|
|
<td>{{timeextra.dateof|date("d/m/Y")}}</td>
|
|
<td>{{timeextra.hour}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block localjavascript %}
|
|
$(document).ready(function() {
|
|
$('#dataTables').DataTable({
|
|
columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ],
|
|
responsive: true,
|
|
iDisplayLength: 100,
|
|
order: [[ 1, "asc" ]]
|
|
});
|
|
});
|
|
{% endblock %} |