<!DOCTYPE html>
<html lang="es">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Registro de Rol</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>

<body>

    <?php
    include 'menuform.php';
    ?>
    <div class="container mt-5">
        <h2>Registrar Rol</h2>
        <form action="../crud/insertarrol.php" method="POST">
            <div class="form-group">
                <label for="nombre">Nombre del Rol</label>
                <input type="text" class="form-control" id="nombre" name="nombre" placeholder="Ingrese el nombre del rol" required>
            </div>

            <div class="form-group mt-3">
                <label for="estado">Estado</label>
                <select class="form-control" id="estado" name="estado" required>
                    <option value="" disabled selected>--- Seleccione el estado ---</option>
                    <option value="Activado">Activado</option>
                    <option value="Desactivado">Desactivado</option>
                </select>
            </div>

            <button type="submit" class="btn btn-primary mt-4">Registrar</button>
        </form>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>