register wip
This commit is contained in:
1 parent
76f4127bb2
commit
7d9a28a84d
6 files changed
+295
-63
No files matched your search
@@ -3,9 +3,22 @@
|
||||
namespace App\Filament\Resources\Kontos\Pages;
|
||||
|
||||
use App\Filament\Resources\Kontos\KontoResource;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListKontos extends ListRecords
|
||||
{
|
||||
protected static string $resource = KontoResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Action::make('agb')
|
||||
->label('AGB\'s')
|
||||
->icon('phosphor-paragraph')
|
||||
->modalContent(view('pages.agb'))
|
||||
->modalSubmitAction(false)
|
||||
->modalCancelAction(fn (Action $action) => $action->label('Schließen')),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Filament\Resources\Users\Schemas;
|
||||
|
||||
use App\Models\User;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Section;
|
||||
@@ -52,6 +53,13 @@ class UserForm
|
||||
->required()
|
||||
->same('password') // Validates that this matches the 'password' field
|
||||
->label('Passwort Bestätigen'),
|
||||
Checkbox::make('agb_akzeptiert')
|
||||
->default(false)
|
||||
->label('Allgemeinen Geschäftsbedinnungen akzeptieren')
|
||||
->accepted()
|
||||
->validationMessages([
|
||||
'accepted' => 'Das Akzeptieren der Allgemeinen Geschäftsbedingungen ist erforderlich.',
|
||||
]),
|
||||
Select::make('roles')
|
||||
->label('Rolle')
|
||||
->prefixIcon('phosphor-gear')
|
||||
|
||||
Reference in new issue
Block a user