<?php session_start(); ?>
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Editar  Curso</title>
    <link rel="stylesheet" href="<?php echo URL_PATH; ?>/public/css/form.css">
    <link rel="stylesheet" href="<?php echo URL_PATH; ?>/public/css/admin.css">
    <link rel="stylesheet" href="<?php echo URL_PATH; ?>/public/colors.css">
    <link rel="stylesheet" href="<?php echo URL_PATH; ?>/public/menu.css">
    <link rel="stylesheet" href="<?php echo URL_PATH; ?>/public/app.css">
    <style>
      
    </style>
</head>
<body>
    <?php include APP_PATH .'/views/components/navbar.php'; ?>
    
    <div class="main-content">
        <div class="form-container">
            <h1 class="page-title">Editar Acuerdo</h1>
            
            <div class="form-card">
                <div class="form-header">
                    <h3>Información del Acuerdo</h3>
                </div>
                <form action="<?php echo URL_PATH; ?>/agreements/update" method="POST">
                    <div class="form-group">
                        <label for="email">Codigo acuerdo </label>
                        <input type="number" id="codigo" name="codigo" placeholder="codigo" value="<?php echo $data['agreements'][0]['AcuerdoId']; ?>">
                    </div>
                    <div class="form-group">
                        <label for="email">Nombre Curso</label>
                        <input type="text" id="text " name="nombre" placeholder="nombre" value="<?php echo $data['agreements'][0]['NombreAcuerdo']; ?>">
                    </div>
                    <input type="hidden" name="codigoactual" value="<?php echo $data['agreements'][0]['AcuerdoId']; ?>">

                    <div class="form-submit">
                        <button type="submit" class="btn-submit">
                            Enviar
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <?php include APP_PATH .'/views/components/footer.php'; ?>
</body>
</html>
