about.tpl 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <div id="about-session">
  2. <div class="row">
  3. <div class="col-xs-12">
  4. <p><i class="fa fa-clock-o"></i> <em>{{ session_date.display }}</em></p>
  5. {% if show_tutor %}
  6. <p>
  7. <i class="fa fa-user"></i> {{ 'SessionGeneralCoach'|get_lang }}: <em>{{ session.generalCoach.getCompleteName() }}</em>
  8. </p>
  9. {% endif %}
  10. {% if session.getShowDescription() %}
  11. <div class="lead">
  12. {{ session.getDescription() }}
  13. </div>
  14. {% endif %}
  15. </div>
  16. </div>
  17. {% if has_requirements %}
  18. <div class="row">
  19. <div class="col-xs-12">
  20. <div class="panel panel-default">
  21. <div class="panel-heading">{{ 'RequiredSessions'|get_lang }}</div>
  22. <div class="panel-body">
  23. <div class="row">
  24. {% for sequence in sequences %}
  25. <div class="col-md-4">
  26. <dl class="dl-horizontal">
  27. {% if sequence.requirements %}
  28. <dt>{{ sequence.name }}</dt>
  29. {% for requirement in sequence.requirements %}
  30. <dd>
  31. <a href="{{ _p.web ~ 'session/' ~ requirement.getId ~ '/about/' }}">{{ requirement.getName }}</a>
  32. </dd>
  33. {% endfor %}
  34. {% endif %}
  35. </dl>
  36. </div>
  37. {% endfor %}
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. {% endif %}
  44. {% if is_subscribed %}
  45. <div class="alert alert-info">
  46. {{ 'AlreadyRegisteredToSession'|get_lang }}
  47. </div>
  48. {% endif %}
  49. {% for course_data in courses %}
  50. {% set course_video = '' %}
  51. {% for extra_field in course_data.extra_fields %}
  52. {% if extra_field.value.getField().getVariable() == 'video_url' %}
  53. {% set course_video = extra_field.value.getValue() %}
  54. {% endif %}
  55. {% endfor %}
  56. <div class="row">
  57. {% if courses|length > 1 %}
  58. <div class="col-xs-12">
  59. <h3 class="text-uppercase">{{ course_data.course.getTitle }}</h3>
  60. </div>
  61. {% endif %}
  62. {% if course_video %}
  63. <div class="col-sm-6 col-md-7">
  64. <div class="embed-responsive embed-responsive-16by9">
  65. {{ essence.replace(course_video) }}
  66. </div>
  67. </div>
  68. {% endif %}
  69. <div class="{{ course_video ? 'col-sm-6 col-md-5' : 'col-sm-12' }}">
  70. <div class="description-course">
  71. {{ course_data.description.getContent }}
  72. </div>
  73. </div>
  74. </div>
  75. <div class="row info-course">
  76. <div class="col-xs-12 col-md-7">
  77. <div class="panel panel-default">
  78. <div class="panel-heading">
  79. <h4>{{ "CourseInformation"|get_lang }}</h4>
  80. </div>
  81. <div class="panel-body">
  82. {% if course_data.objectives %}
  83. <div class="objective-course">
  84. <h4 class="title-info"><i class="fa fa-book"></i> {{ "Objectives"|get_lang }}</h4>
  85. <div class="content-info">
  86. {{ course_data.objectives.getContent }}
  87. </div>
  88. </div>
  89. {% endif %}
  90. {% if course_data.topics %}
  91. <div class="topics">
  92. <h4 class="title-info"><i class="fa fa-book"></i> {{ "Topics"|get_lang }}</h4>
  93. <div class="content-info">
  94. {{ course_data.topics.getContent }}
  95. </div>
  96. </div>
  97. {% endif %}
  98. </div>
  99. </div>
  100. </div>
  101. <div class="col-xs-12 col-md-5">
  102. {% if course_data.coaches %}
  103. <div class="panel panel-default teachers">
  104. <div class="panel-heading">
  105. <h4>{{ "Coaches"|get_lang }}</h4>
  106. </div>
  107. <div class="panel-body">
  108. {% for coach in course_data.coaches %}
  109. <div class="row">
  110. <div class="col-xs-7 col-md-7">
  111. <h4>{{ coach.complete_name }}</h4>
  112. {% for extra_field in coach.extra_fields %}
  113. <dl>
  114. <dt>{{ extra_field.value.getField().getDisplayText() }}</dt>
  115. <dd>{{ extra_field.value.getValue() }}</dd>
  116. </dl>
  117. {% endfor %}
  118. </div>
  119. <div class="col-xs-5 col-md-5">
  120. <div class="text-center">
  121. <img class="img-circle" src="{{ coach.image }}" alt="{{ coach.complete_name }}">
  122. </div>
  123. </div>
  124. </div>
  125. {% endfor %}
  126. </div>
  127. </div>
  128. {% endif %}
  129. {% if course_data.tags %}
  130. <div class="panel panel-default">
  131. <div class="panel-heading">{{ 'Tags'|get_lang }}</div>
  132. <div class="panel-body">
  133. <ul class="list-inline">
  134. {% for tag in course_data.tags %}
  135. <li>
  136. <span class="label label-info">{{ tag.getTag }}</span>
  137. </li>
  138. {% endfor %}
  139. </ul>
  140. </div>
  141. </div>
  142. {% endif %}
  143. <div class="panel panel-default social-share">
  144. <div class="panel-heading">{{ "ShareWithYourFriends"|get_lang }}</div>
  145. <div class="panel-body">
  146. <div class="icons-social text-center">
  147. <a href="https://www.facebook.com/sharer/sharer.php?{{ {'u': pageUrl}|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  148. <i class="fa fa-facebook fa-2x"></i>
  149. </a>
  150. <a href="https://twitter.com/home?{{ {'status': session.getName() ~ ' ' ~ pageUrl}|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  151. <i class="fa fa-twitter fa-2x"></i>
  152. </a>
  153. <a href="https://www.linkedin.com/shareArticle?{{ {'mini': 'true', 'url': pageUrl, 'title': session.getName() }|url_encode }}" target="_blank" class="btn bnt-link btn-lg">
  154. <i class="fa fa-linkedin fa-2x"></i>
  155. </a>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. {% endfor %}
  162. <div class="row">
  163. <div class="col-md-4 col-md-offset-4">
  164. {% if _u.logged and not is_subscribed %}
  165. <div class="text-center">
  166. {{ subscribe_button }}
  167. </div>
  168. {% elseif not _u.logged %}
  169. {% if 'allow_registration'|get_setting == 'true' %}
  170. <a href="{{ _p.web_main ~ 'auth/inscription.php' }}" class="btn btn-info btn-lg">
  171. <i class="fa fa-sign-in fa-fw"></i> {{ 'SignUp'|get_lang }}
  172. </a>
  173. {% endif %}
  174. {% endif %}
  175. </div>
  176. </div>
  177. </div>