Нема описа

addEvaluacion.html 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {% extends 'ElVerdaderoHeader.html' %}
  2. {% block head %}
  3. {{MaestroId}}
  4. {% endblock %}
  5. {% block css %}
  6. <link rel='stylesheet' href ='../../../static/css/estilo.css'>
  7. <!--<script src ="{{url_for('static', filename='evaluacion.js') }}"></script>-->
  8. {% endblock %}
  9. {% block body %}
  10. <h1 class = 'text-center text-white bg-dark'>{{el_curso.codigo}}</h1>
  11. <div ng-app="eval" ng-controller="evalController">
  12. <div class ='row'>
  13. <div class ='col-3'></div>
  14. <div class = 'col-6'>
  15. <form action ='/Maestro/{{MaestroId}}/{{el_curso}}/addNota' method = 'POST' id = 'form'>
  16. <!--<form name="cursoForm" ng-submit="submitForm()">-->
  17. Tipo: <input type="text" name = 'tipo' ng-model ='eval.tipo' class="form-control" placeholder="Examen/Asignaci&oacute;n" required>
  18. Fecha: <input type="date" name ='Fecha' ng-model ='eval.name' class="form-control" required>
  19. Valor: <input type="text" name = 'valor' ng-model ='eval.valor' class="form-control" placeholder="100" required>
  20. <button type='submit' class = 'btn btn-primary'>Someter</button>
  21. <br>
  22. <br>
  23. <input type = 'hidden' id ='maestroId' value ="{{MaestroId}}">
  24. <input type = 'hidden' id = 'ofertaId' value ='{{el_curso}}'>
  25. <a type = 'button' class ='btn btn-success' href ='/Maestro/{{MaestroId}}/{{el_curso}}/addNotas'>Añadir notas a Estudiantes</a>
  26. </div>
  27. </div>
  28. <br>
  29. <br>
  30. <div class = 'row'>
  31. <div class ='col'>
  32. <table class = 'table table-hover'>
  33. <thead>
  34. <tr>
  35. <th>Evaluaciones</th>
  36. <th>Valor</th>
  37. <th>Fecha</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {% for eval in evaluaciones %}
  42. <tr>
  43. <td>{{eval.tipo}}</td>
  44. <td>{{eval.valor}}</td>
  45. <td>{{eval.fecha}}</td>
  46. <td><a type = 'button' class ='btn btn-warning' ng-click = 'edit(eval.id)'>Editar</a></td>
  47. <td><a type = 'button' class ='btn btn-danger' ng-confirm-click = 'Estás seguro que quieres borrar esta evaluación?' confirmed-click ='delEval(eval.id)'>Borrar</a></td>
  48. </tr>{% endfor %}
  49. </tbody>
  50. </table>
  51. </div>
  52. </div>
  53. </form>
  54. <br>
  55. <br>
  56. <div class='text-right'>
  57. <!--<button type = 'button' class = 'btn btn-success' onclick='javascript: addRow("form")'>Añadir Evaluacion</button></form>
  58. --></div>
  59. <!--<script>
  60. /*
  61. function addRow(string){
  62. var node = document.createElement("div");
  63. node.className = 'col'
  64. var newForm = document.getElementById(string)
  65. node.innerHTML ='Tipo: <input type="text" name = "tipo" class="form-control" placeholder="Examen/Asignaci&oacute;n">'+
  66. 'Fecha: <input type="date" name = "Fecha" class="form-control" >'+
  67. 'Valor: <input type="text" name = "valor" class="form-control" placeholder="100">';
  68. newForm.appendChild(node)
  69. }
  70. */
  71. </script>
  72. </div>-->
  73. {% endblock %}