customize edit page

How can i rename the Edit page to Manage Api Token and make the Name input field read only and remove the Save changes and cancel button?
No description
1 Reply
RustyNail
RustyNailOP15mo ago
found it out
protected static ?string $title = 'Manage Api token';
protected static ?string $breadcrumb = 'Manage';


protected function getFormActions(): array
{
return [
// $this->getSaveFormAction(),
// $this->getCancelFormAction(),
];
}

protected function getForms(): array
{
return [
'form' => $this->form(static::getResource()::form(
$this->makeForm()
->operation('edit')
->model($this->getRecord())
->statePath($this->getFormStatePath())
->columns($this->hasInlineLabels() ? 1 : 2)
->inlineLabel($this->hasInlineLabels())
->disabled(),
)),
];
}
protected static ?string $title = 'Manage Api token';
protected static ?string $breadcrumb = 'Manage';


protected function getFormActions(): array
{
return [
// $this->getSaveFormAction(),
// $this->getCancelFormAction(),
];
}

protected function getForms(): array
{
return [
'form' => $this->form(static::getResource()::form(
$this->makeForm()
->operation('edit')
->model($this->getRecord())
->statePath($this->getFormStatePath())
->columns($this->hasInlineLabels() ? 1 : 2)
->inlineLabel($this->hasInlineLabels())
->disabled(),
)),
];
}
Want results from more Discord servers?
Add your server