<!DOCTYPE html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Crear Evento - TicketCompany</title>
  <link rel="stylesheet" href="css/crear-evento.css">
</head>
<body>
  <header>
    <h1>Crear Evento</h1>
  </header>
  <main>
    <div id="mensaje"></div>
    <form id="crearConciertoForm" enctype="multipart/form-data">
      <label for="artista">Artista:</label>
      <input type="text" id="artista" name="artista" required>
  
      <label for="fecha">Fecha:</label>
      <input type="datetime-local" id="fecha" name="fecha" required>
  
      <label for="lugar">Lugar:</label>
      <select id="lugar" name="lugar_id" required>
          <option value="">Seleccione un lugar</option>
      </select>
      
      <p>Capacidad máxima: <span id="capacidad">-</span></p>      
  
      <label for="precio">Precio por Boleto:</label>
      <input type="number" id="precio" name="precio" min="1" step="0.01" required>

      <label for="descripcion">Descripción:</label>
      <textarea id="descripcion" name="descripcion"></textarea>
      
      <label for="imagen">Banner:</label>
      <label>(Recomendado 1400x400)</label>
      <input type="file" id="imagen" name="imagen" accept="image/*">

      <div class="boton-container">
        <button type="submit">Crear Evento</button>
        <a href="inicio.html">
          <button type="button" class="regresar-btn">Regresar</button>
        </a>
      </div>
    </form>
  </main>

  <script src="js/obtener-lugares.js"></script>  
  <script src="js/crear-evento.js"></script>
</body>
</html>