career_dashboard.html.twig 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {% extends "@ChamiloTheme/Layout/layout_one_col.html.twig" %}
  2. {% block content %}
  3. {% autoescape false %}
  4. {{ form_filter }}
  5. {% for item in data %}
  6. <div id="career-{{ item.id }}" class="career panel panel-default">
  7. <div class="panel-heading">
  8. <h4>
  9. {% if is_granted('ROLE_ADMIN') %}
  10. <a href="{{ _p.web }}main/admin/careers.php?action=edit&id={{ item.id }}">
  11. {{ item.name }}
  12. </a>
  13. {% else %}
  14. {{ item.name }}
  15. {% endif %}
  16. </h4>
  17. </div>
  18. <div class="panel-body">
  19. {{ item.description }}
  20. <table class="table promotions">
  21. <thead class="title">
  22. <th>{{ 'Promotions' | get_lang }}</th>
  23. <th>{{ 'StudyCycle' | get_lang }} </th>
  24. <th>{{ 'Courses' | get_lang }} </th>
  25. </thead>
  26. {% for promotions in item.career %}
  27. {% for prom in promotions %}
  28. {% set line = prom.sessions|length + 1 %}
  29. <tr>
  30. <td class="promo" rowspan="{{ line }}">
  31. <h4 id="promotion-id-{{ prom.id }}">
  32. <a title="{{ prom.name }}"
  33. href="{{ _p.web }}main/admin/promotions.php?action=edit&id={{ prom.id }}">
  34. {{ prom.name }}
  35. </a>
  36. </h4>
  37. </td>
  38. {% if line == 1 %}
  39. <td>&nbsp;</td>
  40. <td>&nbsp;</td>
  41. {% endif %}
  42. </tr>
  43. {% for session in prom.sessions %}
  44. {% set sessionid = session.data.id %}
  45. <tr>
  46. <td class="cycles">
  47. <h4 id="session-id-{{ sessionid }}">
  48. <a title="{{ session.data.name }}"
  49. href="{{ _p.web }}main/session/resume_session.php?id_session={{ sessionid }}">
  50. {{ session.data.name }}
  51. </a>
  52. </h4>
  53. </td>
  54. <td class="courses">
  55. <ul>
  56. {% for course in session.courses %}
  57. <li>
  58. <a href="{{ _p.web }}courses/{{ course.directory }}/index.php?id_session={{ sessionid }}"
  59. title="{{ course.title }}">
  60. {{ course.title }}
  61. </a>
  62. </li>
  63. {% endfor %}
  64. </ul>
  65. </td>
  66. </tr>
  67. {% endfor %}
  68. {% endfor %}
  69. {% endfor %}
  70. </table>
  71. </div>
  72. </div>
  73. {% endfor %}
  74. {% endautoescape %}
  75. {% endblock %}