feat: redesign dark futuriste (Luca) — thème cyan/volt, sidebar dark, JetBrains Mono + README

This commit is contained in:
Luca
2026-03-15 21:24:59 +01:00
parent 97ae64caf0
commit c8b704216d
12 changed files with 1552 additions and 691 deletions
+55 -34
View File
@@ -1,54 +1,75 @@
{% extends "base.html" %}
{% block title %}Clients - GarageManager{% endblock %}
{% block title %}Clients GarageManager{% endblock %}
{% block content %}
<div class="flex justify-between items-center mb-8">
<div><h2 class="text-2xl font-bold text-slate-800">Clients</h2><p class="text-slate-500 mt-1">{{ clients|length }} client(s)</p></div>
<a href="/clients/new" class="bg-orange-500 text-white px-4 py-2 rounded-lg text-sm hover:bg-orange-600 transition flex items-center gap-2"><i class="fas fa-plus"></i> Nouveau client</a>
</div>
<div class="bg-white rounded-xl shadow">
<div class="p-4 border-b border-gray-100">
<form method="get" class="flex gap-2">
<input name="q" value="{{ q }}" placeholder="Rechercher par nom, téléphone..." class="flex-1 border border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-orange-300">
<button type="submit" class="bg-slate-700 text-white px-4 py-2 rounded-lg text-sm hover:bg-slate-800">Rechercher</button>
{% if q %}<a href="/clients" class="text-slate-500 px-3 py-2 text-sm hover:text-slate-700 flex items-center"></a>{% endif %}
</form>
<div class="page-header flex justify-between items-center">
<div>
<h1 class="page-title"><i class="fas fa-users text-electric" style="margin-right:0.5rem"></i>Clients</h1>
<p class="page-subtitle">{{ clients|length }} client(s) enregistré(s)</p>
</div>
<a href="/clients/new" class="btn-primary">
<i class="fas fa-plus"></i> Nouveau client
</a>
</div>
<!-- Search -->
<div class="card mb-4" style="padding:1rem 1.25rem">
<form method="get" class="flex gap-2">
<input name="q" value="{{ q }}" placeholder="Rechercher par nom, téléphone…" style="flex:1">
<button type="submit" class="btn-secondary" style="width:auto;white-space:nowrap">
<i class="fas fa-search"></i> Rechercher
</button>
{% if q %}
<a href="/clients" class="btn-secondary" style="width:auto"></a>
{% endif %}
</form>
</div>
<div class="card" style="padding:0">
<div class="overflow-x-auto">
{% if clients %}
<table class="w-full text-sm">
<thead class="bg-gray-50 text-slate-600 text-xs uppercase">
<table>
<thead>
<tr>
<th class="px-6 py-3 text-left">Nom</th>
<th class="px-6 py-3 text-left">Téléphone</th>
<th class="px-6 py-3 text-left">Email</th>
<th class="px-6 py-3 text-left">Véhicules</th>
<th class="px-6 py-3 text-left">Actions</th>
<th>Nom</th>
<th>Téléphone</th>
<th>Email</th>
<th>Véhicules</th>
<th>Actions</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-100">
<tbody>
{% for c in clients %}
<tr class="hover:bg-gray-50">
<td class="px-6 py-4"><a href="/clients/{{ c.id }}" class="font-medium text-slate-800 hover:text-orange-500">{{ c.nom }} {{ c.prenom }}</a></td>
<td class="px-6 py-4 text-slate-600">{{ c.telephone or '-' }}</td>
<td class="px-6 py-4 text-slate-600">{{ c.email or '-' }}</td>
<td class="px-6 py-4"><span class="bg-purple-100 text-purple-700 px-2 py-1 rounded-full text-xs">{{ c.nb_vehicules }}</span></td>
<td class="px-6 py-4 flex gap-3">
<a href="/clients/{{ c.id }}" class="text-blue-500 hover:underline">Voir</a>
<a href="/clients/{{ c.id }}/edit" class="text-orange-500 hover:underline">Modifier</a>
<form method="post" action="/clients/{{ c.id }}/delete" class="inline" onsubmit="return confirm('Supprimer ce client ?')">
<button type="submit" class="text-red-500 hover:underline">Supprimer</button>
</form>
<tr>
<td>
<a href="/clients/{{ c.id }}" class="font-semibold" style="text-decoration:none;color:var(--text-primary)">{{ c.nom }} {{ c.prenom }}</a>
</td>
<td class="text-secondary text-sm">{{ c.telephone or '—' }}</td>
<td class="text-secondary text-sm">{{ c.email or '—' }}</td>
<td>
<span class="badge badge-info">{{ c.nb_vehicules }}</span>
</td>
<td>
<div class="flex gap-3">
<a href="/clients/{{ c.id }}" class="link-action">Voir</a>
<a href="/clients/{{ c.id }}/edit" class="link-edit">Modifier</a>
<form method="post" action="/clients/{{ c.id }}/delete" style="display:inline" onsubmit="return confirm('Supprimer ce client ?')">
<button class="link-danger">Supprimer</button>
</form>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="p-8 text-center text-slate-400">
<i class="fas fa-users text-3xl mb-3"></i><p>Aucun client trouvé</p>
<a href="/clients/new" class="text-orange-500 hover:underline text-sm mt-2 inline-block">Ajouter le premier →</a>
<div class="empty-state">
<i class="fas fa-users"></i>
<p>Aucun client trouvé</p>
<a href="/clients/new" class="link-action">Ajouter le premier →</a>
</div>
{% endif %}
</div>
</div>
{% endblock %}