Files
breadcrumb-the-shire/pages/admin/roles/create(default).phtml

53 lines
1.3 KiB
PHTML
Raw Normal View History

2026-02-04 23:31:53 +01:00
<?php
/**
* @var array<int, string> $errors
* @var array $form
*/
?>
<div class="app-details-container">
<section>
2026-02-11 19:28:12 +01:00
<?php
$breadcrumbs = [
['label' => t('Home'), 'path' => 'admin'],
['label' => t('Roles'), 'path' => 'admin/roles'],
['label' => t('Create role')],
];
require templatePath('partials/app-breadcrumb.phtml');
$titlebar = [
'title' => t('Create role'),
'backHref' => 'admin/roles',
'backTitle' => t('Cancel'),
'actions' => [
[
'form' => 'role-form',
'name' => 'action',
'value' => 'create',
'class' => 'secondary outline',
'label' => t('Create'),
],
[
'form' => 'role-form',
'name' => 'action',
'value' => 'create_close',
'class' => 'primary',
'label' => t('Create & close'),
],
],
];
require templatePath('partials/app-details-titlebar.phtml');
2026-02-11 19:28:12 +01:00
?>
2026-03-04 15:56:58 +01:00
<?php
$validationSummaryErrors = $validationSummaryErrors ?? ($errors ?? []);
require templatePath('partials/app-details-validation-summary.phtml');
?>
2026-02-04 23:31:53 +01:00
<?php
$values = $form ?? [];
$detailsOpenAll = true;
2026-03-14 16:08:19 +01:00
$ignoreTabStorage = true;
2026-02-04 23:31:53 +01:00
require __DIR__ . '/_form.phtml';
?>
</section>
</div>