fix(livewire): add toggleInlineEditing public method to RubricaUniversaleScheda and connect sideTab navigation (task-d095b0e23b)

This commit is contained in:
michele 2026-08-28 16:17:50 +02:00
parent 88f9e10c20
commit 336e8ebdf2
3 changed files with 15 additions and 15 deletions

View File

@ -799,6 +799,15 @@ private function applyLegacyIdentityDefaults(): void
} }
} }
public function toggleInlineEditing(): void
{
if ($this->isInlineEditing) {
$this->cancelInlineEdit();
} else {
$this->startInlineEdit();
}
}
public function startInlineEdit(): void public function startInlineEdit(): void
{ {
$this->fillInlineForm(); $this->fillInlineForm();

View File

@ -8,10 +8,11 @@
</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('activeSubTab', 'condivisi')" class="px-3 py-1.5 rounded-lg {{ $activeSubTab === 'condivisi' ? '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-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('activeSubTab', 'collegamenti')" class="px-3 py-1.5 rounded-lg {{ $activeSubTab === '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-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('activeSubTab', 'collaboratore')" class="px-3 py-1.5 rounded-lg {{ $activeSubTab === 'collaboratore' ? '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-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('activeSubTab', 'autorizzazioni')" class="px-3 py-1.5 rounded-lg {{ $activeSubTab === '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', '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', '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>
</div> </div>
</div> </div>
</div> </div>
@ -238,16 +239,6 @@
</div> </div>
</div> </div>
<div class="rounded-lg border border-gray-200 bg-white p-2">
<div class="flex flex-wrap gap-2">
<button type="button" wire:click="$set('sideTab', 'dati')" class="rounded-md px-3 py-1.5 text-xs font-medium {{ $sideTab === 'dati' ? 'bg-indigo-700 text-white' : 'bg-gray-100 text-gray-700 hover:bg-gray-200' }}">Dati condivisi</button>
<button type="button" wire:click="$set('sideTab', 'collegamenti')" class="rounded-md px-3 py-1.5 text-xs font-medium {{ $sideTab === 'collegamenti' ? 'bg-indigo-700 text-white' : 'bg-gray-100 text-gray-700 hover:bg-gray-200' }}">Collegamenti</button>
<button type="button" wire:click="$set('sideTab', 'studio')" class="rounded-md px-3 py-1.5 text-xs font-medium {{ $sideTab === 'studio' ? 'bg-indigo-700 text-white' : 'bg-gray-100 text-gray-700 hover:bg-gray-200' }}">Collaboratore studio</button>
<button type="button" wire:click="$set('sideTab', 'dipendenti')" class="rounded-md px-3 py-1.5 text-xs font-medium {{ $sideTab === 'dipendenti' ? 'bg-indigo-700 text-white' : 'bg-gray-100 text-gray-700 hover:bg-gray-200' }}">Dipendenti</button>
<button type="button" wire:click="$set('sideTab', 'autorizzazioni')" class="rounded-md px-3 py-1.5 text-xs font-medium {{ $sideTab === 'autorizzazioni' ? 'bg-indigo-700 text-white' : 'bg-gray-100 text-gray-700 hover:bg-gray-200' }}">Ruoli e autorizzazioni</button>
</div>
</div>
<div class="space-y-4"> <div class="space-y-4">
@if($sideTab === 'dati') @if($sideTab === 'dati')
<x-filament::section> <x-filament::section>

View File

@ -19,7 +19,7 @@ ## 1. SCHEDA ANAGRAFICA UNICA CON BARRA ICONICA UNIFICATA COMPATTA
| PATH: Home > NetGescon > Anagrafica > Rubrica Universale (#1) | | PATH: Home > NetGescon > Anagrafica > Rubrica Universale (#1) |
+-------------------------------------------------------------------------------------------------------------------+ +-------------------------------------------------------------------------------------------------------------------+
| BARRA PULSANTINI ICONICI COMPATTI UNIFICATA (SENZA SCROLL ORIZZONTALE): | | BARRA PULSANTINI ICONICI COMPATTI UNIFICATA (SENZA SCROLL ORIZZONTALE): |
| [ 🏢 Elenco ] [ ✏️ Modifica (#1) ] | [ 👥 Dati Condivisi ] [ 🔗 Collegamenti ] [ 💼 Collaboratore ] [ 🛡️ Ruoli & ACL ]| | [ 🏢 Elenco ] [ ✏️ Modifica (#1) ] | [ 👥 Dati Condivisi ] [ 🔗 Collegamenti ] [ 💼 Collaboratore ] [ 👷 Dipendenti ] [ 🛡️ Ruoli & ACL ]|
+-------------------------------------------------------------------------------------------------------------------+ +-------------------------------------------------------------------------------------------------------------------+
| | | |
| INFORMAZIONI GENERALI E CANONICHE CONTATTO (#1 BIANCHI MARIO): | | INFORMAZIONI GENERALI E CANONICHE CONTATTO (#1 BIANCHI MARIO): |