castopod/app/Views/admin/page/view.php
Yassine Doghri 9c224a8ac6 feat: add pages table to store custom instance pages (eg. legal-notice, cookie policy, etc.)
- add pages  migration, model and entity
- add page controllers
- update routes config to input page forms and page view in public
- fix markdow editor focus area
- show pages links in public side footer

closes #24
2020-10-15 14:41:34 +00:00

18 lines
508 B
PHP

<?= $this->extend('admin/_layout') ?>
<?= $this->section('title') ?>
<?= $page->title ?>
<a class="inline-flex items-center px-2 py-1 mb-2 ml-4 text-sm text-white bg-teal-500 rounded shadow-xs outline-none hover:bg-teal-600 focus:shadow-outline" href="<?= route_to(
'page-edit',
$page->id
) ?>">
<?= icon('edit', 'mr-2') ?>
<?= lang('Page.edit') ?></a>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<div class="prose">
<?= $page->content_html ?>
</div>
<?= $this->endSection() ?>