Ingen beskrivning

estudiante.html 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {% extends 'ElVerdaderoHeader.html' %}
  2. {% block head %}
  3. {% endblock %}
  4. {% block css %}
  5. <link rel='stylesheet' href ='../../static/css/estilo.css'>
  6. {% endblock %}
  7. {% block body %}
  8. <h1 class = 'text-center text-white bg-dark'>A&ntilde;ade un prisionero</h1>
  9. <div class ='row'>
  10. <div class = 'col-3'>
  11. </div>
  12. <div class = 'col-6'>
  13. <form action ='/estudiante' method = 'POST'>
  14. Apellidos: <input type="text" name = 'apellidos' class="form-control" placeholder="Paterno Materno">
  15. Nombre: <input type="text" name = 'nombre' class="form-control" placeholder="ElDurako PR">
  16. Email: <input type= 'text' name = 'email' class = 'form-control' placeholder= 'tupapacito@hotbody.com'>
  17. <div class="form-check">
  18. <label class="form-check-label">
  19. <input type="radio" class="form-check-input" name="Usuario" value = 'Maestro' id ='maestro' onclick ='javascript: myFunction("maestro", "estudiante")'>Maestro
  20. </label>
  21. </div>
  22. <div class="form-check">
  23. <label class="form-check-label">
  24. <input type="radio" class="form-check-input" name="Usuario" value = 'Estudiante' id ='estudiante' onclick ='javascript: myFunction("estudiante", "maestro")'>Estudiante
  25. </label>
  26. <div id ='estudiante1' style ='display:none'>
  27. Grado: <input type = 'text' name= 'grado' class = 'form-control' placeholder ='6'>
  28. Educacion Especial: <input type = 'text' name = 'educ' class = 'form-control' placeholder ='Si/No'>
  29. </div>
  30. <div id ='maestro1' style ='display:none'>
  31. Especialidad: <input type = 'text' name= 'especialidad' class = 'form-control' placeholder ='6'>
  32. </div>
  33. <br>
  34. <br>
  35. <div class='text-right'>
  36. <button type='submit' class = 'btn btn-primary'>Saoco</button> </form>
  37. </div>
  38. </div>
  39. <script>
  40. function myFunction(string, string2){
  41. var usuario = document.getElementById(string);
  42. var text = document.getElementById(string+'1');
  43. var usuarioNot = document.getElementById(string2);
  44. var textNot = document.getElementById(string2+'1');
  45. if(usuario.checked){
  46. text.style.display ='block';
  47. textNot.style.display ='none';
  48. }
  49. else{
  50. text.style.display ='none';
  51. }
  52. }
  53. </script>
  54. {% endblock %}