wip controll and repair
This commit is contained in:
1 parent
4a509c6a16
commit
3dd1dad42f
19 files changed
+182
-91
No files matched your search
+2
@@ -10,6 +10,7 @@ use Filament\Actions\CreateAction;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Notifications\Notification;
|
||||
@@ -37,6 +38,7 @@ class ProjektAllgemeinflaechensRelationManager extends RelationManager
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Hidden::make('added_manuel')->default(1),
|
||||
TextInput::make('geschoss')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
|
||||
+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',
|
||||
]),
|
||||
|
||||
@@ -12,6 +12,7 @@ use Filament\Actions\BulkAction;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Notifications\Notification;
|
||||
|
||||
+2
@@ -4,6 +4,7 @@ namespace App\Filament\Resources\Projektes\RelationManagers;
|
||||
|
||||
use App\Actions\Create\CreatePlatzhalter;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Schemas\Schema;
|
||||
@@ -27,6 +28,7 @@ class ProjektPlatzhalterRelationManager extends RelationManager
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Hidden::make('added_manuel')->default(1),
|
||||
TextInput::make('platzhalter')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
|
||||
Reference in new issue
Block a user