assign_members.tpl 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. <a class="btn" href="">Asignar al azar</a>
  4. <hr>
  5. <form>
  6. <table class="table table-bordered">
  7. <tbody>
  8. <tr>
  9. <td>Revisar</td>
  10. {% for member in members %}
  11. {% if _u.user_id == member.user.userId %}
  12. <td class="hover">
  13. {% else %}
  14. <td>
  15. {% endif %}
  16. {# member.user.userId #}
  17. {% if member.role.role == 'ROLE_JURY_PRESIDENT' %}
  18. P{{ loop.index }}
  19. {% elseif member.role.role == 'ROLE_JURY_MEMBER' %}
  20. M{{ loop.index -1}}
  21. {% else %}
  22. S{{ loop.index -1}}
  23. {% endif %}
  24. </td>
  25. {% endfor %}
  26. <td>Estado</td>
  27. </tr>
  28. {% for attempt in attempts %}
  29. <tr>
  30. <td>
  31. Estudiante #{{ attempt.user.getUserId }}
  32. </td>
  33. {% for member in members %}
  34. {% if _u.user_id == member.user.userId %}
  35. {% set memberHover = 'hover' %}
  36. {% else %}
  37. {% set memberHover = '' %}
  38. {% endif %}
  39. {% if relations[attempt.user.getUserId][member.user.userId] == 3 %}
  40. {% set checked = 'checked="checked"' %}
  41. <td class="{{ memberHover }}">
  42. <div class="success">
  43. {% else %}
  44. {% set checked = '' %}
  45. <td class="{{ memberHover }}">
  46. <div>
  47. {% endif %}
  48. <input {{ checked }} id="check_{{ attempt.user.getUserId }}_{{ member.user.userId }}" type="checkbox">
  49. </div>
  50. </td>
  51. {% endfor %}
  52. <td>
  53. {% if my_status_for_student[attempt.user.getUserId] %}
  54. <a href="#" class="btn btn-success disabled">Evaluado</a>
  55. {% else %}
  56. <a href="{{ url('jury_member.controller:scoreAttemptAction', { 'exeId': attempt.getExeId, 'juryId' => jury.id }) }}" class="btn btn-warning">Evaluar</a>
  57. {% endif %}
  58. </td>
  59. </tr>
  60. {% endfor %}
  61. </tbody>
  62. </table>
  63. </form>
  64. <hr>
  65. <a class="btn" href="">Cierre de proceso</a>
  66. {% endblock %}