enable konto seeder also in prod
This commit is contained in:
1 parent
2f2c44c0d7
commit
73a039733e
16 files changed
+136
-132
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions;
|
||||
namespace App\Actions\Create;
|
||||
|
||||
use App\Models\OrientierungZuAbschlaege;
|
||||
use App\Models\Raeumealle;
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions;
|
||||
namespace App\Actions\Create;
|
||||
|
||||
use App\Models\ProjektMethode;
|
||||
use App\Models\Raeumealle;
|
||||
@@ -13,6 +13,7 @@ use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Fieldset;
|
||||
use Filament\Schemas\Components\Icon;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Schemas\Components\View;
|
||||
@@ -78,9 +79,11 @@ class Register extends BaseRegister
|
||||
->label('Registriermodus')
|
||||
->prefixIcon('lucide-key-square')
|
||||
->prefixIconColor('primary')
|
||||
->aboveLabel([
|
||||
'Bitte wählen Sie ein bestehendes Konto oder erstellen Sie ein neues. Eine Registrierung bei einem bestehenden Konto muß vom Kontoinhaber bestätigt werden.',
|
||||
])
|
||||
->aboveLabel(function (Get $get) {
|
||||
if (! $get('register-modus')) {
|
||||
return ['Bitte wählen Sie ein Konto oder erstellen Sie ein neues.'];
|
||||
}
|
||||
})
|
||||
->options([
|
||||
'old' => 'Mit einem bestehenden Konto verbinden',
|
||||
'new' => 'Ein neues Konto erstellen',
|
||||
@@ -149,53 +152,53 @@ class Register extends BaseRegister
|
||||
])->columnSpan(4),
|
||||
|
||||
]),
|
||||
Wizard\Step::make('Zahlungsmodus')
|
||||
->icon('phosphor-coins')
|
||||
->visible(fn (Get $get): bool => $get('register-modus') == 'new')
|
||||
->description('Drei Optionen stehen zur Auswahl')
|
||||
->schema([
|
||||
Section::make('Zahlungsoptionen')
|
||||
->description('können jederzeit geändert werden. Im Moment bieten wir nur unseren Basic Plan an.')->columnSpanFull(),
|
||||
// Wizard\Step::make('Zahlungsmodus')
|
||||
// ->icon('phosphor-coins')
|
||||
// ->visible(fn (Get $get): bool => $get('register-modus') == 'new')
|
||||
// ->description('Drei Optionen stehen zur Auswahl')
|
||||
// ->schema([
|
||||
// Section::make('Zahlungsoptionen')
|
||||
// ->description('können jederzeit geändert werden. Im Moment bieten wir nur unseren Basic Plan an.')->columnSpanFull(),
|
||||
|
||||
RadioDeck::make('plan_id')
|
||||
->label('Wählen sie eine Option')
|
||||
->options(fn () => Plan::pluck('name', 'id')->toArray())
|
||||
->descriptions(Plan::options())
|
||||
->icons(fn () => Plan::pluck('icon', 'id')->toArray())
|
||||
->required()
|
||||
->default(1)
|
||||
->disabled()
|
||||
->iconPosition(IconPosition::Before) // Before | After
|
||||
->iconSize(IconSize::ExtraLarge)
|
||||
->alignment(Alignment::Center) // Start | Center | End
|
||||
->padding('p-2') // Padding around the deck
|
||||
->extraCardsAttributes([
|
||||
'class' => 'rounded-xl drop-shadow-xl mt-1',
|
||||
])
|
||||
->extraOptionsAttributes([
|
||||
'class' => 'text-2xl font-black tracking-tight lg:text-3xl',
|
||||
])
|
||||
->colors('primary')
|
||||
->columns(3)
|
||||
->columnSpanFull(),
|
||||
]),
|
||||
// RadioDeck::make('plan_id')
|
||||
// ->label('Wählen sie eine Option')
|
||||
// ->options(fn () => Plan::pluck('name', 'id')->toArray())
|
||||
// ->descriptions(Plan::options())
|
||||
// ->icons(fn () => Plan::pluck('icon', 'id')->toArray())
|
||||
// ->required()
|
||||
// ->default(1)
|
||||
// ->disabled()
|
||||
// ->iconPosition(IconPosition::Before) // Before | After
|
||||
// ->iconSize(IconSize::ExtraLarge)
|
||||
// ->alignment(Alignment::Center) // Start | Center | End
|
||||
// ->padding('p-2') // Padding around the deck
|
||||
// ->extraCardsAttributes([
|
||||
// 'class' => 'rounded-xl drop-shadow-xl mt-1',
|
||||
// ])
|
||||
// ->extraOptionsAttributes([
|
||||
// 'class' => 'text-2xl font-black tracking-tight lg:text-3xl',
|
||||
// ])
|
||||
// ->colors('primary')
|
||||
// ->columns(3)
|
||||
// ->columnSpanFull(),
|
||||
// ]),
|
||||
Wizard\Step::make('AGB')
|
||||
->icon('lucide-receipt-text')
|
||||
->description('Allgemeine Geschäftsbedingungen')
|
||||
->schema([
|
||||
Fieldset::make('Bitte lesen und akzeptieren Sie die allgemeinen Geschäftsbedignungen um die Registrierung abzuschließen.')
|
||||
Fieldset::make('Bitte lesen und akzeptieren Sie die Allgemeinen Geschäftsbedinnungen.')
|
||||
->schema([
|
||||
View::make('pages.agb'),
|
||||
Checkbox::make('agb_akzeptiert')
|
||||
->default(false)
|
||||
->label('Allgemeine Geschäftsbedingungen akzeptieren')
|
||||
->beforeLabel(Icon::make('phosphor-arrow-fat-right'))
|
||||
->label('Allgemeinen Geschäftsbedinnungen akzeptieren')
|
||||
->accepted()
|
||||
->validationMessages([
|
||||
'accepted' => 'Das Akzeptieren der ABG\'s ist erforderlich.',
|
||||
])
|
||||
->columns(3),
|
||||
])->columnSpanFull(),
|
||||
'accepted' => 'Das Akzeptieren der Allgemeinen Geschäftsbedinnungen ist erforderlich.',
|
||||
]),
|
||||
])->columns(1),
|
||||
|
||||
View::make('pages.agb'),
|
||||
]),
|
||||
])->submitAction(new HtmlString(Blade::render(<<<'BLADE'
|
||||
<x-filament::button
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\Projektes\RelationManagers;
|
||||
|
||||
use App\Actions\CreateOrientierungZuAbschlaege;
|
||||
use App\Actions\Create\CreateOrientierungZuAbschlaege;
|
||||
use App\Models\Merkmale;
|
||||
use App\Models\Orientierung;
|
||||
use App\Models\OrientierungZuAbschlaege;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\Projektes\RelationManagers;
|
||||
|
||||
use App\Actions\CreateProjektMethoden;
|
||||
use App\Actions\Create\CreateProjektMethoden;
|
||||
use App\Models\Methode;
|
||||
use App\Models\ProjektMethode;
|
||||
use Filament\Actions\Action;
|
||||
|
||||
Reference in new issue
Block a user