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

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

<?= $this->section("header") ?>
<link rel="stylesheet" href="<?= base_url('/js/jquery-ui-1.14.1/jquery-ui.min.css') ?>" />
<script type='text/javascript' src="<?= base_url('/js/jquery/jquery-3.7.1.min.js') ?>"></script>
<script type='text/javascript' src="<?= base_url('/js/jquery-ui-1.14.1/jquery-ui.min.js') ?>"></script>
<link rel="stylesheet" href="<?= base_url('css/overlay.css') ?>" />
<script type='text/javascript' src="<?= base_url('/js/htmx/htmx.min.js'); ?>"></script>

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

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

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

<?= form_open("recipes") ?>

<?php $recipe->showtemplates = true; ?>
<?= $this->include("Recipes/form") ?>

</form>

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