career_dashboard.html.twig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 %}