$errors
* @var array $form
* @var array $role
*/
use MintyPHP\Session;
$values = $form ?? $role ?? [];
$isReadOnly = !can('roles.update');
?>
t('Home'), 'path' => 'admin'],
['label' => t('Roles'), 'path' => 'admin/roles'],
['label' => t('Edit role')],
];
require templatePath('partials/app-breadcrumb.phtml');
$titlebar = [
'title' => t('Edit role'),
'backHref' => 'admin/roles',
'backTitle' => t('Cancel'),
'actions' => can('roles.update') ? [
[
'form' => 'role-form',
'name' => 'action',
'value' => 'save',
'class' => 'secondary outline',
'label' => t('Save'),
],
[
'form' => 'role-form',
'name' => 'action',
'value' => 'save_close',
'class' => 'primary',
'label' => t('Save & close'),
],
] : [],
];
require templatePath('partials/app-details-titlebar.phtml');
?>