<?php include("views/components/head.php") ?>

<main class="modification">
    <div class="formulaire">
        <h1>Modifier la categorie</h1>
        <?php if (isset($_GET["infos_requises"])) : ?>
            <p class="msg erreur">
                <span class="material-icons">
                    error
                </span>
                Toutes les informations sont requises
            </p>
        <?php endif; ?>

        <form action="categorie-actualiser" method="POST" enctype="multipart/form-data">
            <input type="hidden" name="id" value="<?= $_GET["id"] ?>">
            <label>Nom:</label>
            <input type="text" name="nom" value="<?= $categorie->nom ?>">
            <input type="submit" value="modifier la categorie">
        </form>
    </div>
</main>
<?php include("views/components/foot.php") ?>