- Fix EventType deletion error handling (constraint violations) - Fix Event update error (package_id column missing) - Fix Event Type dropdown options (JSON display issue) - Fix EventPackagesRelationManager query error - Add missing translations for deletion errors - Apply Pint formatting
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\SuperAdmin\Pages\Auth;
|
|
|
|
use Filament\Auth\Pages\EditProfile as BaseEditProfile;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
class EditProfile extends BaseEditProfile
|
|
{
|
|
public function mount(): void
|
|
{
|
|
Log::info('EditProfile class loaded for superadmin');
|
|
parent::mount();
|
|
}
|
|
|
|
public function form(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->schema([
|
|
$this->getNameFormComponent(),
|
|
$this->getEmailFormComponent(),
|
|
TextInput::make('username')
|
|
->required()
|
|
->unique(ignoreRecord: true)
|
|
->maxLength(255),
|
|
Select::make('preferred_locale')
|
|
->options([
|
|
'de' => 'Deutsch',
|
|
'en' => 'English',
|
|
])
|
|
->default('de')
|
|
->required(),
|
|
$this->getPasswordFormComponent(),
|
|
$this->getPasswordConfirmationFormComponent(),
|
|
$this->getCurrentPasswordFormComponent(),
|
|
]);
|
|
}
|
|
}
|