| 1 | <!DOCTYPE html> |
| 2 | <html lang="es"> |
| 3 | |
| 4 | <head> |
| 5 | |
| 6 | <meta charset="UTF-8"> |
| 7 | <meta name="viewport" content="width=device-width"> |
| 8 | |
| 9 | <title>Agregar</title> |
| 10 | |
| 11 | <script type="module" src="lib/js/submitForm.js"></script> |
| 12 | <script type="module" src="lib/js/muestraError.js"></script> |
| 13 | |
| 14 | </head> |
| 15 | |
| 16 | <body> |
| 17 | |
| 18 | <form onsubmit="submitForm('srv/pasatiempo-agrega.php', event) |
| 19 | .then(modelo => location.href = 'index.html') |
| 20 | .catch(muestraError)"> |
| 21 | |
| 22 | <h1>Agregar</h1> |
| 23 | |
| 24 | <p><a href="index.html">Cancelar</a></p> |
| 25 | |
| 26 | <p> |
| 27 | <label> |
| 28 | Nombre * |
| 29 | <input name="nombre"> |
| 30 | </label> |
| 31 | </p> |
| 32 | |
| 33 | <p>* Obligatorio</p> |
| 34 | |
| 35 | <p><button type="submit">Agregar</button></p> |
| 36 | |
| 37 | </form> |
| 38 | |
| 39 | </body> |
| 40 | |
| 41 | </html> |