-
-
Save parzibyte/b2a41239bb1de1dca2090f7c6d55274f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "maestra.html" %} | |
{% block titulo %} | |
Editar juego | |
{% endblock %} | |
{% block contenido %} | |
<section class="section"> | |
<div class="columns"> | |
<div class="column"> | |
<h3 class="is-size-3">Editar juego</h3> | |
<form action="{{url_for('actualizar_juego')}}" method="post"> | |
{# Enviar el id en un campo oculto #} | |
<input type="hidden" name="id" value="{{juego[0]}}"> | |
<label for="nombre">Nombre:</label> | |
<input value="{{juego[1]}}" required type="text" class="input" placeholder="Nombre" name="nombre" id="nombre"> | |
<label for="descripcion">Descripción</label> | |
<input value="{{juego[2]}}" required type="text" class="input" placeholder="Descripción" name="descripcion" id="descripcion"> | |
<label for="precio">Precio</label> | |
<input value="{{juego[3]}}" required type="number" class="input" placeholder="Precio" name="precio" id="precio"> | |
<button type="submit" class="button is-success mt-2">Guardar</button> | |
<a href="{{url_for('juegos')}}" class="button is-primary mt-2">Volver</a> | |
</form> | |
</div> | |
</div> | |
</section> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment