Nenhuma descrição

verEstuNotas.html 1.7KB

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>Tipo de Nota</th>
  18. <th>Valor</th>
  19. <th>Evaluación</th>
  20. <th>Promedio</th>
  21. <th>Puntuación</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {% for estu in todo %}
  26. <tr>
  27. {% set promedio = namespace(value=0) %}
  28. {% set promedio.value = ((estu.valorSaco / estu.valorReal)*100)|int %}
  29. <td>{{estu.tipo}}</td>
  30. <td>{{estu.valorReal}}</td>
  31. <td>{{estu.valorSaco}}</td>
  32. <td>{{promedio.value}}</td>
  33. <td>
  34. {% if promedio.value >= 90 %}
  35. A
  36. {% elif promedio.value >= 80 %}
  37. B
  38. {% elif promedio.value >= 70 %}
  39. C
  40. {% elif promedio.value >= 60 %}
  41. D
  42. {% else %}
  43. F
  44. {% endif %}
  45. </td>
  46. </tr>
  47. {% endfor %}
  48. </tbody>
  49. </table>
  50. </div>
  51. {% endblock %}