classic_courses.tpl 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <!-- view classic list special course -->
  2. <div class="classic-courses">
  3. {% for item in special_courses %}
  4. <div class="panel panel-default">
  5. <div class="panel-body">
  6. <div class="row">
  7. <div class="col-md-2">
  8. <a class="thumbnail">
  9. {% if item.thumbnails != '' %}
  10. <img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/>
  11. {% else %}
  12. {{ 'blackboard.png' | img(48, item.title ) }}
  13. {% endif %}
  14. </a>
  15. </div>
  16. <div class="col-md-10">
  17. {% if item.edit_actions != '' %}
  18. <div class="pull-right">
  19. {% if item.document == '' %}
  20. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  21. <i class="fa fa-pencil" aria-hidden="true"></i>
  22. </a>
  23. {% else %}
  24. <div class="btn-group" role="group">
  25. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  26. <i class="fa fa-pencil" aria-hidden="true"></i>
  27. </a>
  28. {{ item.document }}
  29. </div>
  30. {% endif %}
  31. </div>
  32. {% endif %}
  33. <h4 class="course-items-title">
  34. {% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %}
  35. {{ item.title }} {{ item.code_course }}
  36. {% else %}
  37. <a href="{{ item.link }}">
  38. {{ item.title }} {{ item.code_course }}
  39. </a>
  40. {{ item.notifications }}
  41. {{ 'klipper.png' | img(22, 'CourseAutoRegister'|get_lang ) }}
  42. {% endif %}
  43. </h4>
  44. <div class="course-items-session">
  45. {{ 'teacher.png' | img(16, 'Professor'|get_lang ) }}
  46. <ul class="teachers">
  47. {% for teacher in item.teachers %}
  48. <li>
  49. {% set counter = counter + 1 %}
  50. {% if counter > 1 %} | {% endif %}
  51. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  52. {{ teacher.firstname }} {{ teacher.lastname }}
  53. </a>
  54. </li>
  55. {% endfor %}
  56. </ul>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. {% endfor %}
  63. </div>
  64. <!-- view classic list course -->
  65. <div class="classic-courses">
  66. <!-- courses in category -->
  67. {% for category in courses.in_category %}
  68. <div class="panel panel-default">
  69. <div id="category-{{ category.id_category }}" class="panel-heading">
  70. {{ category.title_category }}
  71. </div>
  72. <div class="panel-body">
  73. {% for item in category.courses %}
  74. <div class="row">
  75. <div class="col-md-2">
  76. <a class="thumbnail">
  77. {% if item.thumbnails != '' %}
  78. <img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/>
  79. {% else %}
  80. {{ 'blackboard.png' | img(48, item.title ) }}
  81. {% endif %}
  82. </a>
  83. </div>
  84. <div class="col-md-10">
  85. {% if item.edit_actions != '' %}
  86. <div class="pull-right">
  87. {% if item.document == '' %}
  88. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  89. <i class="fa fa-pencil" aria-hidden="true"></i>
  90. </a>
  91. {% else %}
  92. <div class="btn-group" role="group">
  93. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  94. <i class="fa fa-pencil" aria-hidden="true"></i>
  95. </a>
  96. {{ item.document }}
  97. </div>
  98. {% endif %}
  99. </div>
  100. {% endif %}
  101. <h4 class="course-items-title">
  102. {% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %}
  103. {{ item.title }} {{ item.code_course }}
  104. {% else %}
  105. <a href="{{ item.link }}">
  106. {{ item.title }} {{ item.code_course }}
  107. </a>
  108. {{ item.notifications }}
  109. {% endif %}
  110. </h4>
  111. <div class="course-items-session">
  112. {{ 'teacher.png' | img(16, 'Professor'|get_lang ) }}
  113. <ul class="teachers">
  114. {% for teacher in item.teachers %}
  115. <li>
  116. {% set counter = counter + 1 %}
  117. {% if counter > 1 %} | {% endif %}
  118. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  119. {{ teacher.firstname }} {{ teacher.lastname }}
  120. </a>
  121. </li>
  122. {% endfor %}
  123. </ul>
  124. </div>
  125. </div>
  126. </div>
  127. {% endfor %}
  128. </div>
  129. </div>
  130. {% endfor %}
  131. <!-- end courses in category -->
  132. <!-- courses with out categories -->
  133. {% for item in courses.not_category %}
  134. <div class="panel panel-default">
  135. <div class="panel-body">
  136. <div class="row">
  137. <div class="col-md-2">
  138. <a class="thumbnail">
  139. {% if item.thumbnails != '' %}
  140. <img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/>
  141. {% else %}
  142. {{ 'blackboard.png' | img(48, item.title ) }}
  143. {% endif %}
  144. </a>
  145. </div>
  146. <div class="col-md-10">
  147. {% if item.edit_actions != '' %}
  148. <div class="pull-right">
  149. {% if item.document == '' %}
  150. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  151. <i class="fa fa-pencil" aria-hidden="true"></i>
  152. </a>
  153. {% else %}
  154. <div class="btn-group" role="group">
  155. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  156. <i class="fa fa-pencil" aria-hidden="true"></i>
  157. </a>
  158. {{ item.document }}
  159. </div>
  160. {% endif %}
  161. </div>
  162. {% endif %}
  163. <h4 class="course-items-title">
  164. {% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %}
  165. {{ item.title }} {{ item.code_course }}
  166. {% else %}
  167. <a href="{{ item.link }}">
  168. {{ item.title }} {{ item.code_course }}
  169. </a>
  170. {{ item.notifications }}
  171. {% endif %}
  172. </h4>
  173. <div class="course-items-session">
  174. {{ 'teacher.png' | img(16, 'Professor'|get_lang ) }}
  175. <ul class="teachers">
  176. {% for teacher in item.teachers %}
  177. <li>
  178. {% set counter = counter + 1 %}
  179. {% if counter > 1 %} | {% endif %}
  180. <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
  181. {{ teacher.firstname }} {{ teacher.lastname }}
  182. </a>
  183. </li>
  184. {% endfor %}
  185. </ul>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. {% endfor %}
  192. <!-- end courses with out categories -->
  193. </div>