session.tpl 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <div class="panel panel-default">
  2. {% if not session.show_simple_session_info %}
  3. <div class="panel-heading">
  4. {% if session.show_link_to_session %}
  5. <a href="{{ _p.web_main ~ 'session/index.php?session_id=' ~ session.id }}">
  6. <img id="session_img_{{ session.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" alt="{{ session.title }}" title="{{ session.title }}">
  7. {{ session.title }}
  8. </a>
  9. {% else %}
  10. <img id="session_img_{{ session.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" alt="{{ session.title }}" title="{{ session.title }}">
  11. {{ session.title }}
  12. {% endif %}
  13. {% if session.show_actions %}
  14. <div class="pull-right">
  15. <a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ session.id }}">
  16. <img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
  17. </a>
  18. </div>
  19. {% endif %}
  20. </div>
  21. {% endif %}
  22. <div class="sessions panel-body">
  23. {% if session.show_simple_session_info %}
  24. <div class="row">
  25. <div class="col-md-7">
  26. <h3>
  27. {{ session.title ~ session.notifications }}
  28. </h3>
  29. {% if session.show_description %}
  30. <div>
  31. {{ session.description }}
  32. </div>
  33. {% endif %}
  34. {% if session.subtitle %}
  35. <small>{{ session.subtitle }}</small>
  36. {% endif %}
  37. {% if session.teachers %}
  38. <h5 class="teacher-name">{{ "teacher.png"|icon(16) ~ session.teachers }}</h5>
  39. {% endif %}
  40. {% if session.coaches %}
  41. <h5 class="teacher-name">{{ "teacher.png"|icon(16) ~ session.coaches }}</h5>
  42. {% endif %}
  43. </div>
  44. {% if session.show_actions %}
  45. <div class="col-md-5 text-right">
  46. <a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ session.id }}">
  47. <img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}">
  48. </a>
  49. </div>
  50. {% endif %}
  51. </div>
  52. {% else %}
  53. <div class="row">
  54. <div class="col-md-12">
  55. {% if session.subtitle %}
  56. <div class="subtitle-session">
  57. <i class="fa fa-clock-o"></i> {{ session.subtitle }}
  58. </div>
  59. {% endif %}
  60. {% if session.show_description %}
  61. <div class="description-session">
  62. {{ session.description }}
  63. </div>
  64. {% endif %}
  65. <div class="sessions-items">
  66. {% for item in session.courses %}
  67. <div class="row">
  68. <div class="col-md-2">
  69. {% if item.link %}
  70. <a href="{{ item.link }}" class="thumbnail">{{ item.icon }}</a>
  71. {% else %}
  72. {{ item.icon }}
  73. {% endif %}
  74. </div>
  75. <div class="col-md-10">
  76. {{ item.title }}
  77. {% if item.coaches|length > 0 %}
  78. <img src="{{ 'teacher.png'|icon(16) }}" width="16" height="16">
  79. {% for coach in item.coaches %}
  80. {{ loop.index > 1 ? ' | ' }}
  81. <a href="{{ _p.web_ajax ~ 'user_manager.ajax.php?' ~ {'a': 'get_user_popup', 'user_id': coach.user_id}|url_encode() }}" data-title="{{ coach.full_name }}" class="ajax">
  82. {{ coach.full_name }}
  83. </a>
  84. {% endfor %}
  85. {% endif %}
  86. </div>
  87. </div>
  88. {% endfor %}
  89. </div>
  90. </div>
  91. </div>
  92. {% endif %}
  93. </div>
  94. </div>