Nessuna descrizione

Asistencia.html 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {% extends 'ElVerdaderoHeader.html' %}
  2. {% block head %}
  3. {{MaestroId}}
  4. {% endblock %}
  5. {% block css %}
  6. <link rel='stylesheet' href ='../../../static/css/estilo.css'>
  7. {% endblock %}
  8. {% block body %}
  9. <h1 class = 'text-center text-white bg-dark'>Asistencia</h1>
  10. <div class ='row'>
  11. <div class = 'col-1'>
  12. </div>
  13. <div class="col-7">
  14. <form action="/dashboard/{{MaestroId}}/{{ofertaId}}/addAsistencia" method="POST"></form>
  15. <table class='table table-bordered'>
  16. <thead>
  17. <tr>
  18. <th>Estudiantes</th>
  19. <th>Presente</th>
  20. <th>Tarde</th>
  21. <th>Ausente</th>
  22. <th>Excusado</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. {% set count = namespace(value=0) %}
  27. {% for estud in estudiantes %}
  28. <tr>
  29. <td>{{estud.apellidos}} {{estud.nombres}}</td>
  30. <div class = "form-check form-check-inline">
  31. <td> <div class = "form-check form-check-inline"><input class="form-check-input" type="radio" name="Asistencia[{{count.value}}]" id="inlineRadio1" value="0"></div> </td>
  32. <td> <div class = "form-check form-check-inline"><input class="form-check-input" type="radio" name="Asistencia[{{count.value}}]" id="inlineRadio1" value="1"></div> </td>
  33. <td> <div class = "form-check form-check-inline"><input class="form-check-input" type="radio" name="Asistencia[{{count.value}}]" id="inlineRadio1" value="2"></div> </td>
  34. <td> <div class = "form-check form-check-inline"><input class="form-check-input" type="radio" name="Asistencia[{{count.value}}]" id="inlineRadio1" value="3"></div> </td>
  35. </tr>
  36. {% set count.value = count.value + 1 %}
  37. {% endfor %}
  38. </tbody>
  39. </table>
  40. <button type='submit' class='btn btn-success'>Someter</button>
  41. </div>
  42. <div class ='col-4'>
  43. <label for="Fecha">Fecha (Deje en blanco si la asistencia es de hoy):</label>
  44. <input type="date" id="Fecha" name="Fecha">
  45. <input type = 'hidden' name='count' value ={{count.value}}>
  46. </form>
  47. </div>
  48. </div>
  49. {% endblock %}