gmao/app_new/planning/templates/leaves.html
2026-08-14 16:02:25 +00:00

20 lines
No EOL
963 B
HTML

{% extends "base.html" %}
{% block title %}Congés — Planning{% endblock %}
{% block content %}
<div class="container-fluid">
<h1 class="mb-4"><i class="bi bi-calendar-check"></i> Demandes de congés</h1>
<div class="card"><div class="card-body">
{% if leaves %}
<table class="table table-hover">
<thead><tr><th>Demandeur</th><th>Du</th><th>Au</th><th>Statut</th></tr></thead>
<tbody>
{% for l in leaves %}
<tr><td>{{ l.user.full_name if l.user else l.user_id }}</td><td>{{ l.start_date }}</td><td>{{ l.end_date }}</td>
<td><span class="badge bg-{{ 'success' if l.status == 'valide' else 'warning' if l.status == 'en_attente' else 'secondary' }}">{{ l.status }}</span></td></tr>
{% endfor %}
</tbody>
</table>
{% else %}<p class="text-muted">Aucune demande de congé.</p>{% endif %}
</div></div>
</div>
{% endblock %}