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

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

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

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

<h2><?= $input->InputName ?></h2>
<p>Are you sure?</p>

<?= form_open("inputs/".$input->InputID) ?>

<input type="hidden" name="_method" value="DELETE">

<button style="background-color: red;">Yes</button>

<a class="button" href="<?= site_url('/inputs') ?>" default>No</a>

</form>

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

