fix(ui-route-bug): update Fornitori Elenco route, refine sub-tab bar background contrast, and fix nominativo key bug on unita-immobiliare (task-d095b0e23b)

This commit is contained in:
michele 2026-08-28 17:37:00 +02:00
parent 84bf004cb4
commit e7a3344562
3 changed files with 14 additions and 14 deletions

View File

@ -37,12 +37,12 @@
<div class="space-y-6 overflow-x-hidden" x-data="{ tab: @js($this->sectionTab) }"> <div class="space-y-6 overflow-x-hidden" x-data="{ tab: @js($this->sectionTab) }">
{{-- BARRA PULSANTINI ICONICI COMPATTI UNIFICATA (SENZA SCROLL ORIZZONTALE) --}} {{-- BARRA PULSANTINI ICONICI COMPATTI UNIFICATA (SENZA SCROLL ORIZZONTALE) --}}
<div class="mb-5 bg-slate-900 text-slate-100 p-3.5 rounded-xl border border-slate-800 shadow-md"> <div class="mb-5 p-3 rounded-xl border border-slate-200 bg-white/80 shadow-xs backdrop-blur-xs">
<div class="flex flex-wrap gap-2 items-center justify-between"> <div class="flex flex-wrap gap-2 items-center justify-between">
<div class="flex flex-wrap gap-2 items-center"> <div class="flex flex-wrap gap-2 items-center">
<a href="/admin-filament/fornitori" class="px-3.5 py-1.5 rounded-lg bg-sky-600 hover:bg-sky-500 text-white font-semibold text-xs transition">🏢 Elenco Fornitori</a> <a href="/admin-filament/gescon/anagrafica/fornitori" class="px-3.5 py-1.5 rounded-lg bg-sky-700 hover:bg-sky-600 text-white font-bold text-xs shadow-xs transition">🏢 Elenco Fornitori</a>
@if((int) ($fornitore->rubrica_id ?? 0) > 0) @if((int) ($fornitore->rubrica_id ?? 0) > 0)
<a href="/admin-filament/gescon/anagrafica/rubrica/{{ $fornitore->rubrica_id }}" class="px-3.5 py-1.5 rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white font-semibold text-xs transition">👤 Apri Rubrica (#{{ $fornitore->rubrica_id }})</a> <a href="/admin-filament/gescon/anagrafica/rubrica/{{ $fornitore->rubrica_id }}" class="px-3.5 py-1.5 rounded-lg bg-emerald-700 hover:bg-emerald-600 text-white font-bold text-xs shadow-xs transition">👤 Apri Rubrica (#{{ $fornitore->rubrica_id }})</a>
@endif @endif
</div> </div>
@ -52,8 +52,8 @@
type="button" type="button"
wire:click="setSectionTab('{{ $tabKey }}')" wire:click="setSectionTab('{{ $tabKey }}')"
x-on:click="tab = '{{ $tabKey }}'" x-on:click="tab = '{{ $tabKey }}'"
class="px-3 py-1.5 rounded-lg font-semibold text-xs transition" class="px-3 py-1.5 rounded-lg font-bold text-xs transition"
x-bind:class="tab === '{{ $tabKey }}' ? 'bg-indigo-600 text-white' : 'bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700'" x-bind:class="tab === '{{ $tabKey }}' ? 'bg-indigo-700 text-white shadow-md ring-2 ring-indigo-500/20' : 'bg-slate-100 hover:bg-slate-200 text-slate-800 border border-slate-300'"
> >
{{ $tabLabel }} {{ $tabLabel }}
</button> </button>

View File

@ -1,18 +1,18 @@
<x-filament-panels::page> <x-filament-panels::page>
{{-- BARRA PULSANTINI ICONICI COMPATTI UNIFICATA (SENZA SCROLL ORIZZONTALE) --}} {{-- BARRA PULSANTINI ICONICI COMPATTI UNIFICATA (SENZA SCROLL ORIZZONTALE) --}}
<div class="mb-5 bg-slate-900 text-slate-100 p-3.5 rounded-xl border border-slate-800 shadow-md"> <div class="mb-5 p-3 rounded-xl border border-slate-200 bg-white/80 shadow-xs backdrop-blur-xs">
<div class="flex flex-wrap gap-2 items-center justify-between"> <div class="flex flex-wrap gap-2 items-center justify-between">
<div class="flex flex-wrap gap-2 items-center"> <div class="flex flex-wrap gap-2 items-center">
<a href="/admin-filament/gescon/anagrafica/anagrafica-unica" class="px-3.5 py-1.5 rounded-lg bg-sky-600 hover:bg-sky-500 text-white font-semibold text-xs transition">🏢 Elenco</a> <a href="/admin-filament/gescon/anagrafica/anagrafica-unica" class="px-3.5 py-1.5 rounded-lg bg-sky-700 hover:bg-sky-600 text-white font-bold text-xs shadow-xs transition">🏢 Elenco</a>
<button type="button" wire:click="toggleInlineEditing" class="px-3.5 py-1.5 rounded-lg bg-amber-600 hover:bg-amber-500 text-white font-semibold text-xs transition">✏️ Modifica (#{{ $rubrica->id }})</button> <button type="button" wire:click="toggleInlineEditing" class="px-3.5 py-1.5 rounded-lg bg-amber-700 hover:bg-amber-600 text-white font-bold text-xs shadow-xs transition">✏️ Modifica (#{{ $rubrica->id }})</button>
</div> </div>
<div class="flex flex-wrap gap-2 items-center"> <div class="flex flex-wrap gap-2 items-center">
<button type="button" wire:click="$set('sideTab', 'dati')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'dati' ? 'bg-indigo-600 text-white' : 'bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700' }} font-semibold text-xs transition">👥 Dati Condivisi</button> <button type="button" wire:click="$set('sideTab', 'dati')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'dati' ? 'bg-indigo-700 text-white shadow-md ring-2 ring-indigo-500/20' : 'bg-slate-100 hover:bg-slate-200 text-slate-800 border border-slate-300' }} font-bold text-xs transition">👥 Dati Condivisi</button>
<button type="button" wire:click="$set('sideTab', 'collegamenti')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'collegamenti' ? 'bg-indigo-600 text-white' : 'bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700' }} font-semibold text-xs transition">🔗 Collegamenti</button> <button type="button" wire:click="$set('sideTab', 'collegamenti')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'collegamenti' ? 'bg-indigo-700 text-white shadow-md ring-2 ring-indigo-500/20' : 'bg-slate-100 hover:bg-slate-200 text-slate-800 border border-slate-300' }} font-bold text-xs transition">🔗 Collegamenti</button>
<button type="button" wire:click="$set('sideTab', 'studio')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'studio' ? 'bg-indigo-600 text-white' : 'bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700' }} font-semibold text-xs transition">💼 Collaboratore Studio</button> <button type="button" wire:click="$set('sideTab', 'studio')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'studio' ? 'bg-indigo-700 text-white shadow-md ring-2 ring-indigo-500/20' : 'bg-slate-100 hover:bg-slate-200 text-slate-800 border border-slate-300' }} font-bold text-xs transition">💼 Collaboratore Studio</button>
<button type="button" wire:click="$set('sideTab', 'dipendenti')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'dipendenti' ? 'bg-indigo-600 text-white' : 'bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700' }} font-semibold text-xs transition">👷 Dipendenti</button> <button type="button" wire:click="$set('sideTab', 'dipendenti')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'dipendenti' ? 'bg-indigo-700 text-white shadow-md ring-2 ring-indigo-500/20' : 'bg-slate-100 hover:bg-slate-200 text-slate-800 border border-slate-300' }} font-bold text-xs transition">👷 Dipendenti</button>
<button type="button" wire:click="$set('sideTab', 'autorizzazioni')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'autorizzazioni' ? 'bg-indigo-600 text-white' : 'bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700' }} font-semibold text-xs transition">🛡️ Ruoli & Autorizzazioni</button> <button type="button" wire:click="$set('sideTab', 'autorizzazioni')" class="px-3 py-1.5 rounded-lg {{ $sideTab === 'autorizzazioni' ? 'bg-indigo-700 text-white shadow-md ring-2 ring-indigo-500/20' : 'bg-slate-100 hover:bg-slate-200 text-slate-800 border border-slate-300' }} font-bold text-xs transition">🛡️ Ruoli & Autorizzazioni</button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -394,7 +394,7 @@ class="inline-flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-s
{{ $item['periodo'] ?? 'Da sempre' }} {{ $item['periodo'] ?? 'Da sempre' }}
</span> </span>
<span class="text-base font-bold text-gray-900"> <span class="text-base font-bold text-gray-900">
{{ $item['nominativo'] }} {{ $item['nominativo'] ?? $item['nome_completo'] ?? $item['nome'] ?? '—' }}
</span> </span>
@if(!empty($item['ruolo'])) @if(!empty($item['ruolo']))
<span class="rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-semibold text-gray-700"> <span class="rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-semibold text-gray-700">