get_user_items.tpl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. <script>
  4. $(function() {
  5. });
  6. </script>
  7. <style>
  8. .no_border {
  9. border-top : none !important;
  10. }
  11. .center_text {
  12. vertical-align: middle !important;
  13. text-align: center !important;
  14. }
  15. </style>
  16. <div class="row">
  17. <div class="span12">
  18. <div class="actions">
  19. <a href="{{ url('curriculum_user.controller:indexAction',
  20. { 'userId': userResultId, 'course' : course.code, 'id_session' : course_session.id }) }}">
  21. {{ 'Edit' | trans }}
  22. </a>
  23. </div>
  24. <h2>Trayectoria</h2>
  25. <p>Resultados</p>
  26. <table class="data_table">
  27. <tr>
  28. <th class="center_text">
  29. Rubro
  30. </th>
  31. <th class="center_text">
  32. Criterios
  33. </th>
  34. <th class="center_text">
  35. Puntaje
  36. </th>
  37. <th class="center_text" style="width:110px">
  38. N° máximo de evidencias por criterio
  39. </th>
  40. <th class="center_text" style="width:110px">
  41. Puntaje máximo por rubro
  42. </th>
  43. </tr>
  44. {% for subcategory in categories %}
  45. {% if subcategory.lvl == 0 %}
  46. {% elseif subcategory.lvl == 1 %}
  47. {% set rowSpanCounter = item_counter[subcategory.id] | length + category_counter[subcategory.id] + 1 %}
  48. <tr>
  49. <td class="center_text" rowspan="{{ rowSpanCounter }}">
  50. <h3> {{ subcategory.title }}</h3>
  51. </td>
  52. <td colspan="3">
  53. </td>
  54. <td class="center_text" rowspan="{{ rowSpanCounter }}">
  55. <h4>
  56. {# category_score[subcategory.id] #}
  57. {{ subcategory.maxScore }}
  58. </h4>
  59. </td>
  60. </tr>
  61. {% else %}
  62. <tr>
  63. <td class="no_border">
  64. <h4>
  65. {{ subcategory.title }}
  66. {% if category_score[subcategory.id] %}
  67. (Sub total <div class="label label-success">{{ category_score[subcategory.id] }}</div>)
  68. {% endif %}
  69. </h4>
  70. </td>
  71. <td class="no_border">
  72. </td>
  73. <td class="no_border">
  74. </td>
  75. </tr>
  76. {% endif %}
  77. {% if subcategory.items.count > 0 %}
  78. {% for item in subcategory.items %}
  79. <tr>
  80. <td>
  81. {{ item.title }}
  82. </td>
  83. <td>
  84. {{ item_list[item.id] }}
  85. </td>
  86. <td>
  87. {{ item.maxRepeat }}
  88. </td>
  89. </tr>
  90. {% endfor %}
  91. {% endif %}
  92. {% endfor %}
  93. </table>
  94. </div>
  95. </div>
  96. {% endblock %}