grid_courses.tpl 10 KB

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