<?= $this->extend("layouts/default") ?>

<?= $this->section("title") ?>New Input<?= $this->endSection() ?>

<?= $this->section("content") ?>

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "New Input",
        "controller" => "Inputs",
        "links" => [
            "Inputs' List" =>  ["url" => base_url("inputs"), "auth_check" => false]
        ]
    ]
) ?>

    <h1>New Input</h1>
    <?php if(session()->has("errors")): ?>
        <ul>
            <?php foreach(session("errors") as $error): ?>
                <li style="color: red;"><?= $error ?></li>
            <?php endforeach; ?>
        </ul>
    <?php endif; ?>

    <?= form_open("inputs") ?>

    <?= $this->include("Inputs/form") ?>

    </form>

<?= $this->endSection() ?>

