Harmoniser la couleur des jours fériés
Some checks are pending
CI - Tests et Syntax / lint-and-test (push) Waiting to run
Some checks are pending
CI - Tests et Syntax / lint-and-test (push) Waiting to run
This commit is contained in:
parent
e23ba95b4a
commit
962e490a02
1 changed files with 6 additions and 3 deletions
|
|
@ -2,6 +2,9 @@
|
|||
{% block title %}Planning — GMAO Collège{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<style>
|
||||
.holiday-day { background-color: #ffc107 !important; color: #212529 !important; }
|
||||
</style>
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
|
|
@ -62,7 +65,7 @@
|
|||
<div class="d-flex flex-wrap gap-3">
|
||||
<span><span class="badge bg-secondary">Week-end</span></span>
|
||||
<span><span class="badge bg-dark">Vacances</span></span>
|
||||
<span><span class="badge bg-warning text-dark">Jour férié</span></span>
|
||||
<span><span class="badge holiday-day">Jour férié</span></span>
|
||||
<span><span class="badge" style="background:#b7e4c7;color:#14532d;">Permanence</span></span>
|
||||
<span><span class="badge bg-primary">Intervention</span></span>
|
||||
<span><span class="badge bg-info text-dark">Échéance préventive</span></span>
|
||||
|
|
@ -100,7 +103,7 @@
|
|||
{% if day_info.is_permanence %}
|
||||
{% set td_class = 'table-success' %}
|
||||
{% elif day_info.is_holiday %}
|
||||
{% set td_class = 'table-warning' %}
|
||||
{% set td_class = 'holiday-day' %}
|
||||
{% elif day_info.is_vacation %}
|
||||
{% set td_class = 'table-dark' %}
|
||||
{% elif day_info.is_leave %}
|
||||
|
|
@ -111,7 +114,7 @@
|
|||
<td class="{{ td_class }} text-center" title="{% if day_info.is_permanence %}Permanence{% elif day_info.is_holiday %}Jour férié{% elif day_info.vacation_name %}{{ day_info.vacation_name }}{% endif %}">
|
||||
{% set date_str = day_info.date.strftime('%Y-%m-%d') %}
|
||||
<a href="{{ url_for('planning.day', date_str=date_str) }}"
|
||||
class="text-decoration-none {{ 'text-white' if td_class else '' }}"
|
||||
class="text-decoration-none {% if day_info.is_holiday %}text-dark{% elif td_class %}text-white{% endif %}"
|
||||
title="{{ day_info.vacation_name if day_info.vacation_name else '' }}">
|
||||
{{ day_info.day }}
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue