-
-
Save parzibyte/ac9ca77593b482e7bfca8abf84840853 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
<%- include("../header"); %> | |
<div class="col-12"> | |
<h1>Editar producto</h1> | |
<form method="post" action="/productos/actualizar"> | |
<input value="<%= producto.id %>" name="id" type="hidden"> | |
<div class="form-group"> | |
<label for="nombre">Nombre</label> | |
<input value="<%= producto.nombre %>" required id="nombre" placeholder="Nombre del producto" | |
class="form-control" type="text" name="nombre"> | |
</div> | |
<div class="form-group"> | |
<label for="precio">Precio</label> | |
<input value="<%= producto.precio %>" required id="precio" placeholder="Precio del producto" | |
class="form-control" type="number" name="precio"> | |
</div> | |
<div class="form-group"> | |
<button class="btn btn-success">Guardar</button> | |
<a href="/productos" class="btn btn-primary">Volver</a> | |
</div> | |
</form> | |
</div> | |
<%- include("../footer"); %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment