inicio.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {{ define "inicio" }}
  2. {{ template "cabecera"}}
  3. <a name="" id="" class="btn btn-primary" href="/formulario" role="button">Agregar usuario</a>
  4. <table class="table">
  5. <thead>
  6. <tr>
  7. <th>ID</th>
  8. <th>Nombre</th>
  9. <th>Fecha de Nacimiento</th>
  10. <th>Genero </th>
  11. <th>Nivel socioeconomico</th>
  12. <th>Neurodivergente</th>
  13. <th>Grupo etnico</th>
  14. <td> Acciones </td>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. {{range.}}
  19. <tr>
  20. <td> {{.Id}} </td>
  21. <td> {{.Nombre}} </td>
  22. <td> {{.FechaNacimiento}} </td>
  23. <td> {{.Genero}} </td>
  24. <td> {{.NivelSocieconomico}} </td>
  25. <td> {{.Neurodivergente}} </td>
  26. <td> {{.GrupoEtnico}} </td>
  27. <td>
  28. <a name="" id="" class="btn btn-warning" href="/editar?id={{.Id}}" role="button">Editar</a>
  29. <a name="" id="" class="btn btn-danger" href="/borrar?id={{.Id}}" role="button">Borrar</a>
  30. </td>
  31. </tr>
  32. {{end}}
  33. <tr>
  34. <td scope="row"></td>
  35. <td></td>
  36. <td></td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. {{ template "pagina"}}
  41. {{ end }}