View file resources/views/stories/edit.php

File size: 878B
<?php

use App\Models\File;
use App\Models\Story;
use MotorORM\Collection;

/** @var Story $story */
/** @var Collection<File> $files */
?>
<?php $this->layout('layout') ?>

<?php $this->start('title') ?>Редактирование статьи<?php $this->stop() ?>

<?php $this->start('breadcrumb') ?>
    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="bi bi-house-door"></i></a></li>
            <li class="breadcrumb-item"><a href="<?= route('stories') ?>">Статьи</a></li>
            <li class="breadcrumb-item"><a href="<?= $story->getLink() ?>"><?= escape($story->title) ?></a></li>
            <li class="breadcrumb-item active">Редактирование</li>
        </ol>
    </nav>
<?php $this->stop() ?>

<?= $this->fetch('stories/_form', ['story' => $story, 'files' => $files, 'template' => $this]) ?>