<!-- proveedores.php -->
<?php include 'conexion3.php'; ?>
<!DOCTYPE html>
<html lang="es">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Proveedores</title>
 
</head>
<body>
  <div class="container py-4">
    <h2 class="mb-4">Administracion de Proveedores</h2>

    <!-- Formulario -->
    <form method="POST" action="" id="form-proveedor">
      <input type="hidden" name="id" id="id">
      <div class="row mb-3">
        <div class="col-md-4">
          <label class="form-label">Nombre</label>
          <input type="text" name="nombre" id="nombre" class="form-control" required>
        </div>
        <div class="col-md-3">
          <label class="form-label">CUIT</label>
          <input type="text" name="cuit" id="cuit" class="form-control">
        </div>
        <div class="col-md-3">
          <label class="form-label">Contacto</label>
          <input type="text" name="contacto" id="contacto" class="form-control">
        </div>
        <div class="col-md-2">
          <label class="form-label">Telefono</label>
          <input type="text" name="telefono" id="telefono" class="form-control">
        </div>
      </div>
      <div class="mb-3">
        <label class="form-label">Email</label>
        <input type="email" name="email" id="email" class="form-control">
      </div>
      <div class="d-flex gap-2">
        <button type="submit" name="guardar" class="btn btn-primary" id="btn-guardar">Guardar Proveedor</button>
        <button type="button" class="btn btn-secondary d-none" id="btn-cancelar" onClick="cancelarEdicion()">Cancelar</button>
      </div>
    </form>

  
</body>
</html>
