career_dashboard.tpl 2.4 KB

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