forked from fa/breadcrumb-the-shire
45 lines
1.4 KiB
PHTML
45 lines
1.4 KiB
PHTML
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var array<int, string> $errors
|
||
|
|
* @var array $form
|
||
|
|
*/
|
||
|
|
|
||
|
|
?>
|
||
|
|
<div class="app-details-container">
|
||
|
|
<section>
|
||
|
|
<div class="app-breadcrumb">
|
||
|
|
<a href="/admin">Startseite</a><i class="bi bi-chevron-right"></i><a
|
||
|
|
href="/admin/departments"><?php e(t('Departments')); ?></a><i class="bi bi-chevron-right"></i><?php e(t('Create department')); ?>
|
||
|
|
</div>
|
||
|
|
<div class="app-details-titlebar">
|
||
|
|
<h1>
|
||
|
|
<a href="admin/departments" title="<?php e(t('Cancel')); ?>"><i class="bi bi-arrow-left"></i></a>
|
||
|
|
<?php e(t('Create department')); ?>
|
||
|
|
</h1>
|
||
|
|
<div class="app-details-titlebar-actions">
|
||
|
|
<button type="submit" form="department-form" name="action" value="create" class="secondary outline">
|
||
|
|
<?php e(t('Create')); ?>
|
||
|
|
</button>
|
||
|
|
<button type="submit" form="department-form" name="action" value="create_close" class="primary">
|
||
|
|
<?php e(t('Create & close')); ?>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<?php if (!empty($errors)): ?>
|
||
|
|
<div class="notice" data-variant="error">
|
||
|
|
<ul>
|
||
|
|
<?php foreach ($errors as $error): ?>
|
||
|
|
<li><?php e($error); ?></li>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php
|
||
|
|
$values = $form ?? [];
|
||
|
|
$detailsOpenAll = true;
|
||
|
|
require __DIR__ . '/_form.phtml';
|
||
|
|
?>
|
||
|
|
</section>
|
||
|
|
</div>
|