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

56 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
$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');
?>
<?php if (!empty($warnings)): ?>
<div class="notice" data-variant="info">
<ul>
<?php foreach ($warnings as $warning): ?>
<li><?php e($warning); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
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>