Form in page

Hi guys,

I'm making a user profile that using custom Page and form aside layout. Current it doesnt have form and button to submit. I want to inject to button at the bottom of the form.

Here is my code

class Profile extends Page
{
    ...

    public function updateProfileForm(Form $form): Form
    {
        return $form->schema([
            Group::make()
                ->id('personalInformation')
                ->extraAttributes([
                    'class' => 'p-16 max-w-5xl',
                ])
                ->schema([
                    Section::make(__('Personal Information'))
                        ->description(__('Manage your personal information'))
                        ->aside()
                        ->schema([
                            TextInput::make('name')
                                ->required(),
                            TextInput::make('email')
                                ->required()
                                ->email()
                                ->unique(ignoreRecord: true),
                        ]),
                ]),
        ])
            ->statePath('userDate');
    }

    ...
}


<x-filament::page>
    {{ $this->updateProfileForm }}

    {{ $this->changePasswordForm }}
</x-filament::page>
image.png
Was this page helpful?