| 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="js/lib/registraServiceWorker.js"></script> |
| 12 | <script type="module" src="js/lib/manejaErrores.js"></script> |
| 13 | |
| 14 | </head> |
| 15 | |
| 16 | <body> |
| 17 | |
| 18 | <form id="formulario"> |
| 19 | |
| 20 | <h1>Agregar</h1> |
| 21 | |
| 22 | <p><a href="index.html">Cancelar</a></p> |
| 23 | |
| 24 | <p> |
| 25 | <label> |
| 26 | Nombre * |
| 27 | <input name="nombre"> |
| 28 | </label> |
| 29 | </p> |
| 30 | <p>* Obligatorio</p> |
| 31 | <p><button type="submit">Agregar</button></p> |
| 32 | |
| 33 | </form> |
| 34 | |
| 35 | <script type="module"> |
| 36 | |
| 37 | import { pasatiempoAgrega } from "./js/pasatiempoAgrega.js" |
| 38 | |
| 39 | formulario.addEventListener("submit", pasatiempoAgrega) |
| 40 | |
| 41 | </script> |
| 42 | |
| 43 | </body> |
| 44 | |
| 45 | </html> |