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