help wip
This commit is contained in:
1 parent
faded38980
commit
48b372c164
24 files changed
+357
-244
No files matched your search
+27
-29
@@ -3,6 +3,7 @@
|
||||
namespace App\Filament\Resources\Projektes\RelationManagers;
|
||||
|
||||
use App\Actions\Create\CreateProjektInhaltsverzeichnis;
|
||||
use App\Actions\Helper\ShowHelpInhalt;
|
||||
use App\Models\Inhaltselement;
|
||||
use App\Models\KontoTextblock;
|
||||
use App\Models\ProjektInhaltsverzeichnis;
|
||||
@@ -16,7 +17,6 @@ use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\RichEditor\RichContentRenderer;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Schemas\Components\Fieldset;
|
||||
@@ -49,54 +49,52 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
Tabs::make('Tabs')
|
||||
->tabs([
|
||||
Tab::make('Überschrift')
|
||||
// ->hidden(fn ($record) => $record?->name == 'DECKBLATT' ? true : false)
|
||||
->schema([
|
||||
Checkbox::make('neue_seite')
|
||||
->label('Start neuer Seite'),
|
||||
->label('Start neuer Seite')
|
||||
->columnSpan(2),
|
||||
|
||||
// Checkbox::make('seitenzahl_anzeige')
|
||||
// ->label('Seitenzahl angezeigen'),
|
||||
// Checkbox::make('ueberschrift_verbergen')
|
||||
// ->label('Überschrift verbergen'),
|
||||
Textarea::make('name')
|
||||
TextInput::make('name')
|
||||
->prefixIcon('phosphor-article')
|
||||
->afterLabel([ShowHelpInhalt::show()])
|
||||
->required()
|
||||
->label('Überschrift')
|
||||
->columnSpan(2),
|
||||
]),
|
||||
Tab::make('Kapitel Index')
|
||||
->schema([
|
||||
TextInput::make('ordnungszahl')
|
||||
->label('Kapitel Index')
|
||||
->prefixIcon('phosphor-list-numbers')
|
||||
->placeholder('3.21')
|
||||
->numeric()
|
||||
->default(0)
|
||||
->belowContent([
|
||||
'Bei "0" wird der Index im PDF nicht angezeigt',
|
||||
'Bei "0" wird der Index nicht angezeigt',
|
||||
])
|
||||
->columnSpan(1),
|
||||
->columnSpan(2),
|
||||
// TextInput::make('seite')
|
||||
// ->label('Seitenzahl')
|
||||
// ->numeric()
|
||||
// ->default(0)
|
||||
// ->belowContent([
|
||||
// 'Bei "0" wird die Seitenzahl automatisch generiert',
|
||||
// ])
|
||||
// ->columnSpan(1),
|
||||
]),
|
||||
Tab::make('Seitenzahl')
|
||||
->schema([
|
||||
Checkbox::make('seitenzahl_anzeige')
|
||||
->label('Seitenzahl angezeigen'),
|
||||
TextInput::make('seite')
|
||||
->label('Seitenzahl')
|
||||
->numeric()
|
||||
->default(0)
|
||||
->belowContent([
|
||||
'Bei "0" wird die Seitenzahl automatisch generiert',
|
||||
])
|
||||
->columnSpan(1),
|
||||
]),
|
||||
Tab::make('Textblock Abschnitt A')
|
||||
Tab::make('Textblock A')
|
||||
->schema([
|
||||
Grid::make()
|
||||
->columns(6)
|
||||
->schema([
|
||||
TextInput::make('textblock_name')
|
||||
->columnSpan(5)
|
||||
->label('Textblock Name'),
|
||||
// TextInput::make('textblock_name')
|
||||
// ->columnSpan(5)
|
||||
// ->label('Textblock Name'),
|
||||
TextInput::make('konto_textblock_id')->hidden(),
|
||||
RichEditor::make('textblock')
|
||||
->hiddenLabel()
|
||||
->aboveLabel(fn ($record): string => $record?->inhaltselement_id != 0 ? 'Ausgabe Textblock vor Tabelle' : '')
|
||||
->aboveLabel(fn ($record): string => $record?->inhaltselement_id != 0 ? 'Ausgabe vor Inhaltselement' : '')
|
||||
->columnSpan(5)
|
||||
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
|
||||
->toolbarButtons([
|
||||
@@ -200,7 +198,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
return $res;
|
||||
}),
|
||||
]),
|
||||
Tab::make('Textblock Abschnitt B')
|
||||
Tab::make('Textblock B')
|
||||
->schema([
|
||||
Grid::make()
|
||||
->columns(6)
|
||||
@@ -208,7 +206,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
TextInput::make('konto_textblock_id')->hidden(),
|
||||
RichEditor::make('textblock2')
|
||||
->hiddenLabel()
|
||||
->aboveLabel(fn ($record): string => $record?->inhaltselement_id != 0 ? 'Ausgabe Textblock vor Tabelle' : '')
|
||||
->aboveLabel(fn ($record): string => $record?->inhaltselement_id != 0 ? 'Ausgabe nach Inhaltselement' : '')
|
||||
->columnSpan(5)
|
||||
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
|
||||
->toolbarButtons([
|
||||
|
||||
Reference in new issue
Block a user