registrierung localisation
This commit is contained in:
1 parent
c7d87f9f55
commit
749555a6b4
2 files changed
+16
-9
No files matched your search
@@ -13,6 +13,7 @@ use Filament\Forms\Components\Select;
|
|||||||
use Filament\Forms\Components\Textarea;
|
use Filament\Forms\Components\Textarea;
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Filament\Schemas\Components\Fieldset;
|
use Filament\Schemas\Components\Fieldset;
|
||||||
|
use Filament\Schemas\Components\Section;
|
||||||
use Filament\Schemas\Components\Utilities\Get;
|
use Filament\Schemas\Components\Utilities\Get;
|
||||||
use Filament\Schemas\Components\View;
|
use Filament\Schemas\Components\View;
|
||||||
use Filament\Schemas\Components\Wizard;
|
use Filament\Schemas\Components\Wizard;
|
||||||
@@ -129,8 +130,7 @@ class Register extends BaseRegister
|
|||||||
])
|
])
|
||||||
->required(),
|
->required(),
|
||||||
TextInput::make('kontos.title')
|
TextInput::make('kontos.title')
|
||||||
->label('Titel')
|
->label('Titel'),
|
||||||
->required(),
|
|
||||||
TextInput::make('kontos.name')
|
TextInput::make('kontos.name')
|
||||||
->required(),
|
->required(),
|
||||||
TextInput::make('kontos.email')
|
TextInput::make('kontos.email')
|
||||||
@@ -152,8 +152,11 @@ class Register extends BaseRegister
|
|||||||
Wizard\Step::make('Zahlungsmodus')
|
Wizard\Step::make('Zahlungsmodus')
|
||||||
->icon('phosphor-coins')
|
->icon('phosphor-coins')
|
||||||
->visible(fn (Get $get): bool => $get('register-modus') == 'new')
|
->visible(fn (Get $get): bool => $get('register-modus') == 'new')
|
||||||
->description('Kann jederzeit geändert werden.')
|
->description('Drei Optionen stehen zur Auswahl')
|
||||||
->schema([
|
->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')
|
RadioDeck::make('plan_id')
|
||||||
->label('Wählen sie eine Option')
|
->label('Wählen sie eine Option')
|
||||||
->options(fn () => Plan::pluck('name', 'id')->toArray())
|
->options(fn () => Plan::pluck('name', 'id')->toArray())
|
||||||
@@ -178,15 +181,19 @@ class Register extends BaseRegister
|
|||||||
]),
|
]),
|
||||||
Wizard\Step::make('AGB')
|
Wizard\Step::make('AGB')
|
||||||
->icon('lucide-receipt-text')
|
->icon('lucide-receipt-text')
|
||||||
->description(' Allgemein Geschäftsbedignugen')
|
->description('Allgemeine Geschäftsbedingungen')
|
||||||
->schema([
|
->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äftsbedignungen um die Registrierung abzuschließen.')
|
||||||
->schema([
|
->schema([
|
||||||
Checkbox::make('agb_akzeptiert')
|
Checkbox::make('agb_akzeptiert')
|
||||||
->default(false)
|
->default(false)
|
||||||
->label('ABG akzeptieren')
|
->label('Allgemeine Geschäftsbedingungen akzeptieren')
|
||||||
->accepted(),
|
->accepted()
|
||||||
]),
|
->validationMessages([
|
||||||
|
'accepted' => 'Das Akzeptieren der ABG\'s ist erforderlich.',
|
||||||
|
])
|
||||||
|
->columns(3),
|
||||||
|
])->columnSpanFull(),
|
||||||
|
|
||||||
View::make('pages.agb'),
|
View::make('pages.agb'),
|
||||||
]),
|
]),
|
||||||
|
|||||||
@@ -57,13 +57,13 @@ return [
|
|||||||
'not_in' => 'The selected :attribute is invalid.',
|
'not_in' => 'The selected :attribute is invalid.',
|
||||||
'numeric' => 'The :attribute must be a number.',
|
'numeric' => 'The :attribute must be a number.',
|
||||||
'regex' => 'The :attribute format is invalid.',
|
'regex' => 'The :attribute format is invalid.',
|
||||||
'required' => 'Diese Feld ist erforderlich.',
|
'required' => ':Attribute ist erforderlich.',
|
||||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||||
'required_with' => 'The :attribute field is required when :values is present.',
|
'required_with' => 'The :attribute field is required when :values is present.',
|
||||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
'required_with_all' => 'The :attribute field is required when :values is present.',
|
||||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||||
'same' => 'The :attribute and :other must match.',
|
'same' => 'Feld :Attribute muß mit dem :Other Feld übereinstimmen.',
|
||||||
'size' => [
|
'size' => [
|
||||||
'numeric' => 'The :attribute must be :size.',
|
'numeric' => 'The :attribute must be :size.',
|
||||||
'file' => 'The :attribute must be :size kilobytes.',
|
'file' => 'The :attribute must be :size kilobytes.',
|
||||||
|
|||||||
Reference in new issue
Block a user