assign_members.tpl 2.7 KB

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