Няма описание

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% extends 'ElVerdaderoHeader.html' %}
  2. {% block head %}
  3. {{nombre}}
  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'>Cursos</h1>
  10. <div class ='row'>
  11. <div class = 'col-1'>
  12. </div>
  13. <div class="col-10">
  14. <table class = 'table table-hover'>
  15. <thead>
  16. <tr>
  17. <th>Curso</th>
  18. <th>Promedio</th>
  19. <th>Nota</th>
  20. <th>Evaluaciones</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. {% for estu in todaNota %}
  25. <tr>
  26. {% set promedio = namespace(value=0) %}
  27. {% set promedio.value = ((estu.valorSaco / estu.valorReal)*100)|int %}
  28. <td>{{estu.codigo}}, {{estu.titulo}}</td>
  29. <td>{{promedio.value}}</td>
  30. <td>
  31. {% if promedio.value >= 90 %}
  32. A
  33. {% elif promedio.value >= 80 %}
  34. B
  35. {% elif promedio.value >= 70 %}
  36. C
  37. {% elif promedio.value >= 60 %}
  38. D
  39. {% else %}
  40. F
  41. {% endif %}
  42. </td>
  43. <td>
  44. <a href="/dashEstudiantes/{{estId}}/notas/{{estu.oferta_id}}" class="boton task2">Evaluaciones</a>
  45. </td>
  46. </tr>
  47. {% endfor %}
  48. </tbody>
  49. </table>
  50. </div>
  51. {% endblock %}