Mode sombre, option désactivation mises à jour, user-picker avec recherche
- Dark mode complet : darkMode:'class' Tailwind, sélecteur clair/sombre/auto dans la navigation (mémorisé dans localStorage, sans flash au chargement) ; 53 vues et 8 composants Breeze mis à jour avec classes dark: - Composant user-picker : fenêtre modale avec recherche temps réel (nom/email) remplace les <select> d'ajout de membres dans sections et sources - Paramètres : option "Désactiver la vérification automatique des mises à jour" (case à cochage auto-soumise, route POST parametres/updates) - Panneau "Paramètres généraux" remonté en tête de la page de paramètres - README recentré sur l'installation manuelle hébergement PHP+MySQL - VERSION 1.0.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
<div class="flex items-center justify-between">
|
||||
<h2 class="text-xl font-semibold text-gray-800">{{ $lieu->nom }}</h2>
|
||||
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">{{ $lieu->nom }}</h2>
|
||||
<div class="flex gap-3">
|
||||
@can('update', $lieu)
|
||||
<a href="{{ route('lieux.edit', $lieu) }}"
|
||||
@@ -26,67 +26,67 @@
|
||||
<div class="py-8 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6">
|
||||
|
||||
@if(session('success'))
|
||||
<div class="p-4 bg-green-50 border border-green-200 text-green-800 rounded-md">
|
||||
<div class="p-4 bg-green-50 dark:bg-green-900/30 border border-green-200 dark:border-green-700 text-green-800 dark:text-green-200 rounded-md">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Fiche --}}
|
||||
<div class="bg-white shadow rounded-lg divide-y divide-gray-100">
|
||||
<div class="bg-white dark:bg-gray-800 shadow rounded-lg divide-y divide-gray-100 dark:divide-gray-700">
|
||||
<div class="px-6 py-4 grid grid-cols-3 gap-4 text-sm">
|
||||
<dt class="font-medium text-gray-500">Nom complet</dt>
|
||||
<dd class="col-span-2 text-gray-900">{{ $lieu->nom_long ?? $lieu->nom }}</dd>
|
||||
<dt class="font-medium text-gray-500 dark:text-gray-400">Nom complet</dt>
|
||||
<dd class="col-span-2 text-gray-900 dark:text-white">{{ $lieu->nom_long ?? $lieu->nom }}</dd>
|
||||
</div>
|
||||
<div class="px-6 py-4 grid grid-cols-3 gap-4 text-sm">
|
||||
<dt class="font-medium text-gray-500">Type</dt>
|
||||
<dd class="col-span-2 text-gray-900">{{ $lieu->lieuType?->nom ?? '—' }}</dd>
|
||||
<dt class="font-medium text-gray-500 dark:text-gray-400">Type</dt>
|
||||
<dd class="col-span-2 text-gray-900 dark:text-white">{{ $lieu->lieuType?->nom ?? '—' }}</dd>
|
||||
</div>
|
||||
@if($lieu->code)
|
||||
<div class="px-6 py-4 grid grid-cols-3 gap-4 text-sm">
|
||||
<dt class="font-medium text-gray-500">Code</dt>
|
||||
<dd class="col-span-2 text-gray-900">{{ $lieu->code }}</dd>
|
||||
<dt class="font-medium text-gray-500 dark:text-gray-400">Code</dt>
|
||||
<dd class="col-span-2 text-gray-900 dark:text-white">{{ $lieu->code }}</dd>
|
||||
</div>
|
||||
@endif
|
||||
<div class="px-6 py-4 grid grid-cols-3 gap-4 text-sm">
|
||||
<dt class="font-medium text-gray-500">Lieu parent</dt>
|
||||
<dt class="font-medium text-gray-500 dark:text-gray-400">Lieu parent</dt>
|
||||
<dd class="col-span-2">
|
||||
@if($lieu->parent)
|
||||
<a href="{{ route('lieux.show', $lieu->parent) }}" class="text-indigo-600 hover:underline">
|
||||
{{ $lieu->parent->nom_long ?? $lieu->parent->nom }}
|
||||
</a>
|
||||
@else
|
||||
<span class="text-gray-400">Lieu racine</span>
|
||||
<span class="text-gray-400 dark:text-gray-500">Lieu racine</span>
|
||||
@endif
|
||||
</dd>
|
||||
</div>
|
||||
@if($lieu->latitude && $lieu->longitude)
|
||||
<div class="px-6 py-4 grid grid-cols-3 gap-4 text-sm">
|
||||
<dt class="font-medium text-gray-500">Coordonnées</dt>
|
||||
<dd class="col-span-2 text-gray-900">{{ $lieu->latitude }}, {{ $lieu->longitude }}</dd>
|
||||
<dt class="font-medium text-gray-500 dark:text-gray-400">Coordonnées</dt>
|
||||
<dd class="col-span-2 text-gray-900 dark:text-white">{{ $lieu->latitude }}, {{ $lieu->longitude }}</dd>
|
||||
</div>
|
||||
@endif
|
||||
@if($lieu->note)
|
||||
<div class="px-6 py-4 grid grid-cols-3 gap-4 text-sm">
|
||||
<dt class="font-medium text-gray-500">Note</dt>
|
||||
<dd class="col-span-2 text-gray-900 whitespace-pre-line">{{ $lieu->note }}</dd>
|
||||
<dt class="font-medium text-gray-500 dark:text-gray-400">Note</dt>
|
||||
<dd class="col-span-2 text-gray-900 dark:text-white whitespace-pre-line">{{ $lieu->note }}</dd>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{{-- Enfants --}}
|
||||
@if($lieu->enfants->isNotEmpty())
|
||||
<div class="bg-white shadow rounded-lg overflow-hidden">
|
||||
<div class="px-6 py-4 border-b border-gray-200">
|
||||
<h3 class="font-medium text-gray-900">Subdivisions ({{ $lieu->enfants->count() }})</h3>
|
||||
<div class="bg-white dark:bg-gray-800 shadow rounded-lg overflow-hidden">
|
||||
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
|
||||
<h3 class="font-medium text-gray-900 dark:text-white">Subdivisions ({{ $lieu->enfants->count() }})</h3>
|
||||
</div>
|
||||
<ul class="divide-y divide-gray-100">
|
||||
<ul class="divide-y divide-gray-100 dark:divide-gray-700">
|
||||
@foreach($lieu->enfants->sortBy('nom') as $enfant)
|
||||
<li class="px-6 py-3">
|
||||
<a href="{{ route('lieux.show', $enfant) }}" class="text-indigo-600 hover:underline">
|
||||
{{ $enfant->nom }}
|
||||
</a>
|
||||
@if($enfant->code)
|
||||
<span class="ml-2 text-xs text-gray-400">({{ $enfant->code }})</span>
|
||||
<span class="ml-2 text-xs text-gray-400 dark:text-gray-500">({{ $enfant->code }})</span>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user