This commit is contained in:
salam committed 2025-11-14 12:33:19 +01:00
1 parent a20893d527
commit 4b79874100
31 files changed
+549 -1535

No files matched your search

@@ -4,6 +4,7 @@ namespace App\Filament\Resources\Projektes\Schemas;
use App\Enums\ProjektStatus;
use App\Models\Projekte;
use Filament\Actions\Action;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\RichEditor;
@@ -32,25 +33,41 @@ class ProjekteForm
->schema([
TextInput::make('offizieller_name')
->label('Offizieller Name')
->required()
->suffixAction(
Action::make('copy')
->tooltip('Kopieren')
->icon('heroicon-s-clipboard-document-check')
->action(function ($livewire, $state) {
$livewire->js('window.navigator.clipboard.writeText("'.$state.'");');
})
)
->belowContent([
'Kann mit "###OFFIZIELLER_NAME###" im Text verwendet werden.',
]),
'Als Platzhalter "###OFFIZIELLER_NAME###"',
])
->required(),
TextInput::make('interner_name')
->label('Interner Name')
->required()
->suffixAction(
Action::make('copy')
->tooltip('Kopieren')
->icon('heroicon-s-clipboard-document-check')
->action(function ($livewire, $state) {
$livewire->js('window.navigator.clipboard.writeText("'.$state.'");');
})
)
->belowContent([
'Kann mit "###INTERNER_NAME###" im Text verwendet werden.',
]),
'Als Platzhalter "###INTERNER_NAME###"',
])
->required(),
TextInput::make('ort')->required()->suffix('am')
->belowContent([
'Kann mit "###ORT###" im Text verwendet werden.',
'Als Platzhalter "###ORT###"',
]),
DatePicker::make('erstellung')
->label('Datum der Erstellung')
->required()
->belowContent([
'Kann mit "###DATUM###" im Text verwendet werden.',
'Als Platzhalter "###DATUM###"',
]),
])->columns(2),
Tab::make('Zuordnung')