gradebook_dependency.html.twig 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
  2. {% block content %}
  3. {% autoescape false %}
  4. <h3>
  5. {{ gradebook_category.name }}
  6. {% if gradebook_category.courseCode is not empty %}
  7. ({{ gradebook_category.courseCode }})
  8. {% endif %}
  9. </h3>
  10. {{ 'MinimumGradebookToValidate' | get_lang }} : {{ min_to_validate }}
  11. <br/>
  12. {{ 'MandatoryCourses' | get_lang }}
  13. {% for course in mandatory_courses %}
  14. <th>
  15. {{ course.title }} ({{ course.code }})
  16. </th>
  17. {% endfor %}
  18. <hr>
  19. <table class="table">
  20. <thead class="title">
  21. <tr>
  22. <th>{{ 'Users' | get_lang }}</th>
  23. {% for course in courses %}
  24. <th>
  25. {{ course.title }} ({{ course.code }})
  26. </th>
  27. {% endfor %}
  28. <th>{{ 'RestCoursesSubscribedResults' | get_lang }}</th>
  29. <th>{{ 'Progress' | get_lang }} Max 20 (Mandatory courses)</th>
  30. <th>{{ 'Progress' | get_lang }} Max 80 (Rest of courses)</th>
  31. <th>{{ 'Total' | get_lang }}</th>
  32. </tr>
  33. </thead>
  34. {% for user in users %}
  35. <tr>
  36. <td>{{ user.user_info.complete_name }}</td>
  37. {% for course in courses %}
  38. <td>
  39. {% if user.result_dependencies[course.code] %}
  40. <img src="{{ 'check-circle.png'|icon(22) }}"/>
  41. {% endif %}
  42. </td>
  43. {% endfor %}
  44. <td>
  45. {{ user.course_list_passed_out_dependency }} /
  46. {{ user.course_list_passed_out_dependency_count }}
  47. </td>
  48. <td>
  49. {{ user.result_mandatory_20 }}
  50. </td>
  51. <td>
  52. {{ user.result_not_mandatory_80 }}
  53. </td>
  54. <td>
  55. {% if user.final_result %}
  56. <img src="{{ 'check-circle.png'|icon(22) }}"/>
  57. {% else %}
  58. <img src="{{ 'warning.png'|icon(22) }}"/>
  59. {% endif %}
  60. </td>
  61. </tr>
  62. {% endfor %}
  63. </table>
  64. {% endautoescape %}
  65. {% endblock %}