2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-08-18 16:31:28 +00:00
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Page.create') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-08-18 16:31:28 +00:00
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-17 12:48:18 +00:00
|
|
|
<form action="<?= route_to('page-create') ?>" method="POST" class="flex flex-col max-w-3xl gap-y-4">
|
2020-08-18 16:31:28 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="title"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Page.form.title')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-17 12:48:18 +00:00
|
|
|
data-slugify="title"
|
|
|
|
class="max-w-sm" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-12-18 16:05:25 +00:00
|
|
|
<x-Forms.PermalinkEditor
|
|
|
|
name="slug"
|
|
|
|
label="<?= lang('Page.form.permalink') ?>"
|
|
|
|
prefix="…/pages/"
|
|
|
|
data-slugify="slug"
|
|
|
|
permalinkBase="<?= base_url('pages') ?>"
|
|
|
|
/>
|
2020-08-18 16:31:28 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
as="MarkdownEditor"
|
|
|
|
name="content"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Page.form.content')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-15 15:58:21 +00:00
|
|
|
rows="20" />
|
2020-10-02 15:38:16 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" class="self-end"><?= lang('Page.form.submit_create') ?></x-Button>
|
2020-08-18 16:31:28 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
</form>
|
2020-08-18 16:31:28 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|