registrierung localisation

This commit is contained in:
salam committed 2025-10-02 11:46:14 +02:00
1 parent c7d87f9f55
commit 749555a6b4
2 files changed
+16 -9

No files matched your search

+14 -7
View File
@@ -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\Section;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Components\View;
use Filament\Schemas\Components\Wizard;
@@ -129,8 +130,7 @@ class Register extends BaseRegister
])
->required(),
TextInput::make('kontos.title')
->label('Titel')
->required(),
->label('Titel'),
TextInput::make('kontos.name')
->required(),
TextInput::make('kontos.email')
@@ -152,8 +152,11 @@ class Register extends BaseRegister
Wizard\Step::make('Zahlungsmodus')
->icon('phosphor-coins')
->visible(fn (Get $get): bool => $get('register-modus') == 'new')
->description('Kann jederzeit geändert werden.')
->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())
@@ -178,15 +181,19 @@ class Register extends BaseRegister
]),
Wizard\Step::make('AGB')
->icon('lucide-receipt-text')
->description(' Allgemein Geschäftsbedignugen')
->description('Allgemeine Geschäftsbedingungen')
->schema([
Fieldset::make('Bitte lesen und akzeptieren Sie die allgemeinen Geschäftsbedignungen um die Registrierung abzuschließen.')
->schema([
Checkbox::make('agb_akzeptiert')
->default(false)
->label('ABG akzeptieren')
->accepted(),
]),
->label('Allgemeine Geschäftsbedingungen akzeptieren')
->accepted()
->validationMessages([
'accepted' => 'Das Akzeptieren der ABG\'s ist erforderlich.',
])
->columns(3),
])->columnSpanFull(),
View::make('pages.agb'),
]),
+2 -2
View File
@@ -57,13 +57,13 @@ return [
'not_in' => 'The selected :attribute is invalid.',
'numeric' => 'The :attribute must be a number.',
'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_with' => '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_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' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',