<!DOCTYPE html>
<!DOCTYPE html>

<?= $this->extend('templates/blank_page'); ?>

<?= $this->section('menu'); ?>	
	<?= $this->include('templates/menu'); ?>
<?= $this->endSection(); ?>

<?= $this->section('header_contenido'); ?>
	<?= $this->include('templates/header_contenido'); ?>
<?= $this->endSection(); ?>

<?= $this->section('contenido'); ?>

<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Crear Usuario</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <h1>Crear Usuario</h1>
    <form action="<?= base_url('usuarios/store') ?>" method="post">
        <div class="mb-3">
            <label for="nombre" class="form-label">Nombre</label>
            <input type="text" name="nombre" class="form-control" required>
        </div>
        <div class="mb-3">
            <label for="apellido" class="form-label">Apellido</label>
            <input type="text" name="apellido" class="form-control" required>
        </div>
        <div class="mb-3">
            <label for="email" class="form-label">Email</label>
            <input type="email" name="email" class="form-control">
        </div>
        <div class="mb-3">
            <label for="usuario" class="form-label">Usuario</label>
            <input type="text" name="usuario" class="form-control" required>
        </div>
        <div class="mb-3">
            <label for="f_nacimiento" class="form-label">Fecha de Nacimiento</label>
            <input type="date" name="f_nacimiento" class="form-control">
        </div>
        <div class="mb-3">
            <label for="id_grupo" class="form-label">ID Grupo</label>
            <input type="number" name="id_grupo" class="form-control" required>
        </div>
        <div class="mb-3">
            <label for="id_cliente" class="form-label">ID Cliente</label>
            <input type="number" name="id_cliente" class="form-control" required>
        </div>
        <div class="mb-3">
            <label for="l_estado" class="form-label">Estado</label>
            <input type="text" name="l_estado" class="form-control" maxlength="1" required>
        </div>
        <button type="submit" class="btn btn-primary">Guardar</button>
        <a href="<?= base_url('usuarios') ?>" class="btn btn-secondary">Volver</a>
    </form>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>

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

