register steps ok
This commit is contained in:
1 parent
ebece1fca7
commit
24f50c5e43
3 files changed
+30
-9
No files matched your search
@@ -16,6 +16,8 @@ use Filament\Schemas\Components\Wizard;
|
|||||||
use Filament\Schemas\Components\Wizard\Step;
|
use Filament\Schemas\Components\Wizard\Step;
|
||||||
use Filament\Schemas\Schema;
|
use Filament\Schemas\Schema;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Support\Facades\Blade;
|
||||||
|
use Illuminate\Support\HtmlString;
|
||||||
use Ysfkaya\FilamentPhoneInput\Forms\PhoneInput;
|
use Ysfkaya\FilamentPhoneInput\Forms\PhoneInput;
|
||||||
|
|
||||||
class Register extends BaseRegister
|
class Register extends BaseRegister
|
||||||
@@ -117,6 +119,12 @@ class Register extends BaseRegister
|
|||||||
->label('Telefon')
|
->label('Telefon')
|
||||||
->defaultCountry('AT'),
|
->defaultCountry('AT'),
|
||||||
])->columnSpan(4),
|
])->columnSpan(4),
|
||||||
|
Fieldset::make('Mit diesen Daten auch einen')
|
||||||
|
->visible(fn (Get $get): bool => $get('register-modus') == 'new')
|
||||||
|
->schema([
|
||||||
|
Checkbox::make('gutachter_anlegen')->inline(),
|
||||||
|
Checkbox::make('auftraggeber_anlegen')->inline(),
|
||||||
|
])->columnSpan(4),
|
||||||
|
|
||||||
]),
|
]),
|
||||||
Wizard\Step::make('AGB')
|
Wizard\Step::make('AGB')
|
||||||
@@ -132,11 +140,24 @@ class Register extends BaseRegister
|
|||||||
|
|
||||||
View::make('pages.agb'),
|
View::make('pages.agb'),
|
||||||
]),
|
]),
|
||||||
]),
|
])->submitAction(new HtmlString(Blade::render(<<<'BLADE'
|
||||||
|
<x-filament::button
|
||||||
|
type="submit"
|
||||||
|
size="sm"
|
||||||
|
wire:submit="register"
|
||||||
|
>
|
||||||
|
Register
|
||||||
|
</x-filament::button>
|
||||||
|
BLADE))),
|
||||||
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getFormActions(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
public function handleRegistration(array $data): Model
|
public function handleRegistration(array $data): Model
|
||||||
{
|
{
|
||||||
if (isset($data['kontos'])) {
|
if (isset($data['kontos'])) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="pl-4">
|
<div class="pl-4">
|
||||||
<x-filament::icon-button icon="heroicon-o-sun" class="hidden dark:block" x-on:click=toggle_theme(); />
|
<x-filament::icon-button icon="heroicon-o-sun" class="hidden dark:block" x-on:click=toggle_theme(); />
|
||||||
<x-filament::icon-button icon="heroicon-m-moon" class="block dark:hidden" x-on:click=toggle_theme(); />
|
<x-filament::icon-button icon="heroicon-o-moon" class="block dark:hidden" x-on:click=toggle_theme(); />
|
||||||
</div>
|
</div>
|
||||||
@@ -25,21 +25,21 @@
|
|||||||
<x-filament::link href="/nutzwerte" color="white" icon="heroicon-o-building-office-2">
|
<x-filament::link href="/nutzwerte" color="white" icon="heroicon-o-building-office-2">
|
||||||
Nutzwerte
|
Nutzwerte
|
||||||
</x-filament::link>
|
</x-filament::link>
|
||||||
<x-filament::link href="/programm" color="white" icon="heroicon-o-calculator">
|
{{-- <x-filament::link href="/programm" color="white" icon="heroicon-o-calculator">
|
||||||
Programm
|
Programm
|
||||||
</x-filament::link>
|
</x-filament::link> --}}
|
||||||
<x-filament::link href="/impressum" color="white" icon="heroicon-o-calendar-date-range">
|
<x-filament::link href="/impressum" color="white" icon="heroicon-o-calendar-date-range">
|
||||||
Impressum
|
Impressum
|
||||||
</x-filament::link>
|
</x-filament::link>
|
||||||
<x-filament::button href="/app" tag="a" size="sm">
|
|
||||||
|
<x-filament::button href="/app" tag="a" size="sm" color="gray">
|
||||||
Anmelden
|
Anmelden
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
|
<x-filament::button href="/app/register" tag="a" size="sm">
|
||||||
|
Registrieren
|
||||||
|
</x-filament::button>
|
||||||
|
|
||||||
@include('layouts.dark-toggle')
|
@include('layouts.dark-toggle')
|
||||||
|
|
||||||
{{-- <x-filament::button href="/app/register" tag="a" size="sm" color="gray">
|
|
||||||
Registrieren
|
|
||||||
</x-filament::button> --}}
|
|
||||||
</dev>
|
</dev>
|
||||||
<!-- Mobile Menu Button -->
|
<!-- Mobile Menu Button -->
|
||||||
<button x-on:click="mobileMenuIsOpen = !mobileMenuIsOpen" x-bind:aria-expanded="mobileMenuIsOpen"
|
<button x-on:click="mobileMenuIsOpen = !mobileMenuIsOpen" x-bind:aria-expanded="mobileMenuIsOpen"
|
||||||
|
|||||||
Reference in new issue
Block a user