<?php Block::put('breadcrumb') ?>
    <ul>
        <li><a href="<?= Backend::url('timfoerster/leaflet/maps') ?>">Maps</a></li>
        <li><?= e($this->pageTitle) ?></li>
    </ul>
<?php Block::endPut() ?>

<?php if (!$this->fatalError): ?>

    <div class="form-preview">
        <?= $this->formRenderPreview() ?>

        <h2>Objects</h2>
        <?= $this->relationRender('objects') ?>
    </div>

<?php else: ?>
    <p class="flash-message static error"><?= e($this->fatalError) ?></p>
<?php endif ?>

<p>
    <a href="<?= Backend::url('timfoerster/leaflet/maps') ?>" class="btn btn-default oc-icon-chevron-left">
        <?= e(trans('backend::lang.form.return_to_list')) ?>
    </a>
</p>
