career_dashboard.tpl 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {% extends template ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. {{ form_filter }}
  4. {% for item in data %}
  5. <div id="career-{{ item.id }}" class="career panel panel-default">
  6. <div class="panel-heading">
  7. <h4><a href="{{ _p.web }}main/admin/careers.php?action=edit&id={{ item.id }}">{{ item.name }}</a></h4>
  8. </div>
  9. <div class="panel-body">
  10. {{ item.description }}
  11. <table class="table promotions">
  12. <thead class="title">
  13. <th>{{ 'Promotions' | get_lang }}</th>
  14. <th>{{ 'StudyCycle' | get_lang }} </th>
  15. <th>{{ 'Courses' | get_lang }} </th>
  16. </thead>
  17. {% for promotions in item.career %}
  18. {% for prom in promotions %}
  19. {% set line = prom.sessions|length + 1 %}
  20. <tr>
  21. <td class="promo" rowspan="{{ line }}">
  22. <h4 id="promotion-id-{{ prom.id }}">
  23. <a title="{{ prom.name }}" href="{{ _p.web }}main/admin/promotions.php?action=edit&id={{ prom.id }}">
  24. {{ prom.name }}
  25. </a>
  26. </h4>
  27. </td>
  28. {% if line == 1 %}
  29. <td>&nbsp;</td><td>&nbsp;</td>
  30. {% endif %}
  31. </tr>
  32. {% for session in prom.sessions %}
  33. {% set sessionid = session.data.id %}
  34. <tr>
  35. <td class="cycles">
  36. <h4 id="session-id-{{ sessionid }}">
  37. <a title="{{ session.data.name }}" href="{{ _p.web }}main/session/resume_session.php?id_session={{ sessionid }}">
  38. {{ session.data.name }}
  39. </a>
  40. </h4>
  41. </td>
  42. <td class="courses">
  43. <ul>
  44. {% for course in session.courses %}
  45. <li><a href="{{ _p.web }}courses/{{ course.directory }}/index.php?id_session={{ sessionid }}" title="{{ course.title }}">{{ course.title }}</a></li>
  46. {% endfor %}
  47. </ul>
  48. </td>
  49. </tr>
  50. {% endfor %}
  51. {% endfor %}
  52. {% endfor %}
  53. </table>
  54. </div>
  55. </div>
  56. {% endfor %}
  57. {% endblock %}