| 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 src="dompurify/purify.min.js"></script> |
| 12 | <script type="module" src="libclienteweb/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 | San * |
| 27 | <input name="san"> |
| 28 | </label> |
| 29 | </p> |
| 30 | |
| 31 | <fieldset id="roles"> |
| 32 | |
| 33 | <legend>Roles</legend> |
| 34 | |
| 35 | <p> |
| 36 | <progress max="100">Cargando…</progress> |
| 37 | </p> |
| 38 | |
| 39 | </fieldset> |
| 40 | |
| 41 | <p>* Obligatorio</p> |
| 42 | |
| 43 | <p><button type="submit">Agregar</button></p> |
| 44 | |
| 45 | </form> |
| 46 | |
| 47 | <script type="module"> |
| 48 | |
| 49 | import { descargaVista } from "./libclienteweb/descargaVista.js" |
| 50 | import { |
| 51 | configuraSubmitAccion |
| 52 | } from "./libclienteweb/configuraSubmitAccion.js" |
| 53 | |
| 54 | descargaDatos() |
| 55 | |
| 56 | async function descargaDatos() { |
| 57 | await descargaVista("api/usuario-vista-agrega.php") |
| 58 | configuraSubmitAccion("api/usuario-agrega.php", formulario, "index.html") |
| 59 | } |
| 60 | |
| 61 | </script> |
| 62 | |
| 63 | </body> |
| 64 | |
| 65 | </html> |