mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-31 07:57:22 +02:00
- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
64 lines
1.4 KiB
PHP
64 lines
1.4 KiB
PHP
<?= $this->extend('admin/_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Page.create') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Page.create') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<?= form_open(route_to('page-create'), [
|
|
'class' => 'flex flex-col max-w-3xl',
|
|
]) ?>
|
|
<?= csrf_field() ?>
|
|
|
|
<?= form_label(lang('Page.form.title'), 'title', ['class' => 'max-w-sm']) ?>
|
|
<?= form_input([
|
|
'id' => 'title',
|
|
'name' => 'title',
|
|
'class' => 'form-input mb-4 max-w-sm',
|
|
'value' => old('title'),
|
|
'required' => 'required',
|
|
'data-slugify' => 'title',
|
|
]) ?>
|
|
|
|
<?= form_label(lang('Page.form.slug'), 'slug', ['class' => 'max-w-sm']) ?>
|
|
<?= form_input([
|
|
'id' => 'slug',
|
|
'name' => 'slug',
|
|
'class' => 'form-input mb-4 max-w-sm',
|
|
'value' => old('slug'),
|
|
'required' => 'required',
|
|
'data-slugify' => 'slug',
|
|
]) ?>
|
|
|
|
<div class="mb-4">
|
|
<?= form_label(lang('Page.form.content'), 'content') ?>
|
|
<?= form_textarea(
|
|
[
|
|
'id' => 'content',
|
|
'name' => 'content',
|
|
'class' => 'form-textarea',
|
|
'required' => 'required',
|
|
],
|
|
old('content', '', false),
|
|
'data-editor="markdown"',
|
|
) ?>
|
|
</div>
|
|
|
|
|
|
<?= button(
|
|
lang('Page.form.submit_create'),
|
|
'',
|
|
['variant' => 'primary'],
|
|
['type' => 'submit', 'class' => 'self-end'],
|
|
) ?>
|
|
|
|
<?= form_close() ?>
|
|
|
|
<?= $this->endSection() ?>
|