wip controll and repair
This commit is contained in:
1 parent
4a509c6a16
commit
3dd1dad42f
19 files changed
+182
-91
No files matched your search
+7
-4
@@ -14,6 +14,7 @@ use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\RichEditor\RichContentRenderer;
|
||||
use Filament\Forms\Components\Select;
|
||||
@@ -32,6 +33,7 @@ use Filament\Tables\Enums\FiltersLayout;
|
||||
use Filament\Tables\Filters\Filter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use ToneGabes\BetterOptions\Forms\Components\RadioCards;
|
||||
use ToneGabes\Filament\Icons\Enums\Phosphor;
|
||||
|
||||
@@ -53,6 +55,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
->components([
|
||||
Tabs::make('Tabs')
|
||||
->tabs([
|
||||
Hidden::make('added_manuel')->default(1),
|
||||
Tab::make('Überschrift')
|
||||
->schema([
|
||||
Checkbox::make('neue_seite')
|
||||
@@ -157,7 +160,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
// $record = $mountedActions[0]->getRawData();
|
||||
|
||||
// $block = new KontoTextblock;
|
||||
// $block->konto_id = auth()->user()->konto_id;
|
||||
// $block->konto_id = Auth::user()->konto_id;
|
||||
// $block->name = $data['name'];
|
||||
// $block->textblock = RichContentRenderer::make($record['textblock'])->toHtml();
|
||||
// $block->save();
|
||||
@@ -171,7 +174,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
// Select::make('konto_textblock_id')
|
||||
// ->hiddenLabel()
|
||||
// ->searchable()
|
||||
// ->options(KontoTextblock::where('konto_id', auth()->user()->konto_id)->pluck('name', 'id'))
|
||||
// ->options(KontoTextblock::where('konto_id', Auth::user()->konto_id)->pluck('name', 'id'))
|
||||
// ->belowLabel([
|
||||
// 'Bitte eine Vorlage auswählen',
|
||||
// ]),
|
||||
@@ -270,7 +273,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
$record = $mountedActions[0]->getRawData();
|
||||
|
||||
$block = new KontoTextblock;
|
||||
$block->konto_id = auth()->user()->konto_id;
|
||||
$block->konto_id = Auth::user()->konto_id;
|
||||
$block->name = $data['name'];
|
||||
$block->textblock = RichContentRenderer::make($record['textblock'])->toHtml();
|
||||
$block->save();
|
||||
@@ -284,7 +287,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
Select::make('konto_textblock_id')
|
||||
->hiddenLabel()
|
||||
->searchable()
|
||||
->options(KontoTextblock::where('konto_id', auth()->user()->konto_id)->pluck('name', 'id'))
|
||||
->options(KontoTextblock::where('konto_id', Auth::user()->konto_id)->pluck('name', 'id'))
|
||||
->belowLabel([
|
||||
'Bitte eine Vorlage auswählen',
|
||||
]),
|
||||
|
||||
Reference in new issue
Block a user