-
Congés
-
{{ used.conges }} / {{ balance.conges_total }} j
+
+
+
Solde congés & RTT
+
+
+
+ CONGÉS
+
+ {{ used.conges }} / {{ balance.conges_total }} j
+
+
+
-
-
-
-
- RTT
- {{ used.rtt }} / {{ balance.rtt_total }} j
-
-
-
+
+
+ RTT
+
+ {{ used.rtt }} / {{ balance.rtt_total }} j
+
+
+
diff --git a/app/templates/entry_form.html b/app/templates/entry_form.html
index 615bc42..34546f7 100644
--- a/app/templates/entry_form.html
+++ b/app/templates/entry_form.html
@@ -1,45 +1,45 @@
{% extends "base.html" %}
-{% block title %}{% if entry %}Modifier{% else %}Nouvelle entrée{% endif %}{% endblock %}
+{% block title %}{% if entry %}Modifier l'entrée{% else %}Nouvelle journée{% endif %}{% endblock %}
{% block content %}
-
- {% if entry %}Modifier le {{ entry.date }}{% else %}Nouvelle journée{% endif %}
-
+
+
+ {% if entry %}Modifier{% else %}Nouvelle journée{% endif %}
+
+
@@ -145,11 +144,14 @@ function addTimeSlot() {
const row = document.createElement('div');
row.className = 'flex gap-2 items-center time-slot-row';
row.innerHTML = `
-
-
→
-
+
+
→
+
+ class="text-lg leading-none" style="color:var(--mist);"
+ onmouseover="this.style.color='var(--rust)'" onmouseout="this.style.color='var(--mist)'">×
`;
container.appendChild(row);
}
diff --git a/app/templates/entry_list.html b/app/templates/entry_list.html
index 13f147d..0c54fe8 100644
--- a/app/templates/entry_list.html
+++ b/app/templates/entry_list.html
@@ -2,32 +2,57 @@
{% block title %}Historique{% endblock %}
{% block content %}
-
Historique
+
{% if not entries %}
-
Aucune entrée pour le moment.
+
+
Aucune entrée pour le moment.
+
{% endif %}
{% for entry in entries %}
-
-
-
{{ entry.date | date_fr }}
-
- {{ entry.day_type }}
- {% if entry.time_slots %} — {{ entry.total_hours_str() }}{% endif %}
- {% if entry.journey_profile_id %} — {{ entry.journey_profile_id }}{% endif %}
-
- {% if entry.comment %}
-
{{ entry.comment }}
- {% endif %}
-
-
-
Éditer
-
+
+{% set dot_color =
+ '#4A7A54' if entry.day_type == 'WORK' else
+ '#3A6AAA' if entry.day_type == 'TT' else
+ '#C8842A' if entry.day_type in ('GARDE', 'ASTREINTE') else
+ '#7A4AAA' if entry.day_type in ('RTT', 'FORMATION') else
+ '#B85035' if entry.day_type == 'MALADE' else
+ '#8A8278'
+%}
+
+
+
+
+
{{ entry.date | date_fr }}
+
+ {{ entry.day_type }}
+ {% if entry.time_slots %}
+ {{ entry.total_hours_str() }}
+ {% endif %}
+ {% if entry.motor_vehicle_id %}
+ · {{ entry.motor_vehicle_id }}
+ {% elif entry.journey_profile_id %}
+ · {{ entry.journey_profile_id }}
+ {% endif %}
+
+ {% if entry.comment %}
+
{{ entry.comment }}
+ {% endif %}
+
+
{% endfor %}
diff --git a/app/templates/reports.html b/app/templates/reports.html
index ab35973..4608369 100644
--- a/app/templates/reports.html
+++ b/app/templates/reports.html
@@ -1,12 +1,12 @@
{% extends "base.html" %}
-{% block title %}Rapports{% endblock %}
+{% block title %}Rapports {{ year }}{% endblock %}
{% block content %}
-
-
Rapports {{ year }}
+
+
+
Rapports
-
-
Kilométrage annuel
- {% for vehicle_id, km in total_km.items() %}
-
- {{ vehicles.get(vehicle_id, {}).get('name', vehicle_id) }}
- {{ km }} km
-
- {% endfor %}
-
- CO₂ total
- {{ total_co2_kg }} kg
-
+
+
+
Kilométrage {{ year }}
+ {% if total_km %}
+
+ {% for vehicle_id, km in total_km.items() %}
+
+ {{ vehicles.get(vehicle_id, {}).get('name', vehicle_id) }}
+
+ {{ km }}km
+
+
+ {% endfor %}
+
+ CO₂ TOTAL
+
+ {{ total_co2_kg }}kg
+
+
+
+ {% else %}
+
Aucun déplacement enregistré pour {{ year }}.
+ {% endif %}
-
-
Frais réels (barème {{ year }})
-
Déduction fiscale estimée — véhicules motorisés uniquement
- {% for vehicle_id, montant in frais_reels.items() %}
-
- {{ vehicles.get(vehicle_id, {}).get('name', vehicle_id) }}
- {{ montant }} €
-
- {% endfor %}
- {% if not frais_reels %}
-
Aucune donnée pour {{ year }}.
+
+
+
Frais réels — barème {{ year }}
+
Déduction fiscale estimée · véhicules motorisés uniquement
+ {% if frais_reels %}
+
+ {% for vehicle_id, montant in frais_reels.items() %}
+
+ {{ vehicles.get(vehicle_id, {}).get('name', vehicle_id) }}
+
+ {{ montant }}€
+
+
+ {% endfor %}
+
+ {% else %}
+
Aucune donnée pour {{ year }}.
{% endif %}
diff --git a/tests/test_routes.py b/tests/test_routes.py
index ed114fc..53098cf 100644
--- a/tests/test_routes.py
+++ b/tests/test_routes.py
@@ -7,7 +7,7 @@ import sqlalchemy as sa
def test_dashboard_empty(client):
response = client.get("/")
assert response.status_code == 200
- assert "Tableau de bord" in response.text
+ assert "Journal de bord" in response.text
def test_entry_form_get(client):