cloned id in details

This commit is contained in:
salam committed 2026-07-06 08:26:27 +02:00
1 parent 3dd1dad42f
commit dd5cfa8d43
1 file changed
+6 -2
@@ -12,6 +12,7 @@ use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Select; use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput; use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle; use Filament\Forms\Components\Toggle;
use Filament\Forms\Components\ToggleButtons;
use Filament\Schemas\Components\Section; use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Tabs; use Filament\Schemas\Components\Tabs;
use Filament\Schemas\Components\Tabs\Tab; use Filament\Schemas\Components\Tabs\Tab;
@@ -35,6 +36,7 @@ class ProjekteForm
->icon('phosphor-article-medium') ->icon('phosphor-article-medium')
->schema([ ->schema([
TextInput::make('offizieller_name') TextInput::make('offizieller_name')
->columnSpan(2)
->label('Offizieller Name') ->label('Offizieller Name')
->suffixAction( ->suffixAction(
Action::make('copy') Action::make('copy')
@@ -49,6 +51,7 @@ class ProjekteForm
]) ])
->required(), ->required(),
TextInput::make('interner_name') TextInput::make('interner_name')
->columnSpan(2)
->label('Interner Name') ->label('Interner Name')
->suffixAction( ->suffixAction(
Action::make('copy') Action::make('copy')
@@ -67,8 +70,9 @@ class ProjekteForm
->options(ProjektStatus::class) ->options(ProjektStatus::class)
->required(), ->required(),
TextInput::make('id')->disabled()->label('Interne ID'), TextInput::make('id')->disabled()->label('Interne ID'),
TextInput::make('cloned_from_id')->disabled()->label('Geklont von Id'),
])->columns(2), TextInput::make('original_name')->disabled()->placeholder(fn($record)=> $record->cloned_from_id ? Projekte::find($record->cloned_from_id)->value('interner_name') : '')->label('Original Name')
])->columns(4),
Tab::make('Ort & Datum') Tab::make('Ort & Datum')
->icon('phosphor-calendar-check') ->icon('phosphor-calendar-check')
->schema([ ->schema([