-
-
Save parzibyte/9daf8d445f498e17dbf9ac6756e7470d 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
render() { | |
return ( | |
<div className="column is-one-third"> | |
<h1 className="is-size-3">Agregar videojuego</h1> | |
<ToastContainer></ToastContainer> | |
<form className="field" onSubmit={this.manejarEnvioDeFormulario}> | |
<div className="form-group"> | |
<label className="label" htmlFor="nombre">Nombre:</label> | |
<input autoFocus required placeholder="Nombre" type="text" id="nombre" onChange={this.manejarCambio} value={this.state.videojuego.nombre} className="input" /> | |
</div> | |
<div className="form-group"> | |
<label className="label" htmlFor="precio">Precio:</label> | |
<input required placeholder="Precio" type="number" id="precio" onChange={this.manejarCambio} value={this.state.videojuego.precio} className="input" /> | |
</div> | |
<div className="form-group"> | |
<label className="label" htmlFor="calificacion">Calificación:</label> | |
<input required placeholder="Calificación" type="number" id="calificacion" onChange={this.manejarCambio} value={this.state.videojuego.calificacion} className="input" /> | |
</div> | |
<div className="form-group"> | |
<button className="button is-success mt-2">Guardar</button> | |
| |
<Link to="/videojuegos/ver" className="button is-primary mt-2">Volver</Link> | |
</div> | |
</form> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment