cloned id in details
This commit is contained in:
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\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Forms\Components\ToggleButtons;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Tabs;
|
||||
use Filament\Schemas\Components\Tabs\Tab;
|
||||
@@ -35,6 +36,7 @@ class ProjekteForm
|
||||
->icon('phosphor-article-medium')
|
||||
->schema([
|
||||
TextInput::make('offizieller_name')
|
||||
->columnSpan(2)
|
||||
->label('Offizieller Name')
|
||||
->suffixAction(
|
||||
Action::make('copy')
|
||||
@@ -49,6 +51,7 @@ class ProjekteForm
|
||||
])
|
||||
->required(),
|
||||
TextInput::make('interner_name')
|
||||
->columnSpan(2)
|
||||
->label('Interner Name')
|
||||
->suffixAction(
|
||||
Action::make('copy')
|
||||
@@ -67,8 +70,9 @@ class ProjekteForm
|
||||
->options(ProjektStatus::class)
|
||||
->required(),
|
||||
TextInput::make('id')->disabled()->label('Interne ID'),
|
||||
|
||||
])->columns(2),
|
||||
TextInput::make('cloned_from_id')->disabled()->label('Geklont von Id'),
|
||||
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')
|
||||
->icon('phosphor-calendar-check')
|
||||
->schema([
|
||||
|
||||
Reference in new issue
Block a user