grid_session.tpl 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {#{% if _u.status == '5' %}#}
  2. {#<!-- list courses in sessions users -->#}
  3. {#<div class="grid-courses">#}
  4. {#<div class="row">#}
  5. {#{% for item in all_courses %}#}
  6. {#<div class="col-xs-12 col-sm-6 col-md-4">#}
  7. {#<div class="items">#}
  8. {#<div class='session'>#}
  9. {#<h6 class='session-name'><i class="fa fa-book" aria-hidden="true"></i> {{ item.session.title }}</h6>#}
  10. {#</div>#}
  11. {#<div class="image">#}
  12. {#<img src="{{ item.image }}" class="img-responsive">#}
  13. {#{% if item.category != '' %}#}
  14. {#<span class="category">{{ item.session.category_id }}</span>#}
  15. {#<div class="cribbon"></div>#}
  16. {#{% endif %}#}
  17. {#<div class="black-shadow">#}
  18. {#<div class="author-card">#}
  19. {#{% for teacher in item.teachers %}#}
  20. {#{% set counter = counter + 1 %}#}
  21. {#{% if counter <= 3 %}#}
  22. {#<a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">#}
  23. {#<img src="{{ teacher.avatar }}"/>#}
  24. {#</a>#}
  25. {#{% endif %}#}
  26. {#{% endfor %}#}
  27. {#</div>#}
  28. {#<div class="session-date">#}
  29. {#<i class="fa fa-calendar" aria-hidden="true"></i> {{ item.session.date }}#}
  30. {#</div>#}
  31. {#</div>#}
  32. {#</div>#}
  33. {#<div class="description">#}
  34. {#<h4 class="title">#}
  35. {#{{ item.title }}#}
  36. {#</h4>#}
  37. {#<div class="notifications">{{ item.notifications }}</div>#}
  38. {#</div>#}
  39. {#</div>#}
  40. {#</div>#}
  41. {#{% endfor %}#}
  42. {#</div>#}
  43. {#</div>#}
  44. {#{% else %}#}
  45. <div class="grid-courses">
  46. <div class="row">
  47. {% for item in session %}
  48. <div class="col-xs-12 col-sm-6 col-md-4">
  49. <div class="items session {{ item.is_old ? 'old_session' : '' }} {{ item.is_future ? 'future_session' : '' }} ">
  50. <div class="image">
  51. <img class="img-responsive" src="{{ item.image ? _p.web_upload ~ item.image : _p.web_img ~ 'session_default.png' }}">
  52. <div class="black-shadow">
  53. <div class="author-card">
  54. <a href="{{ item.coach_url }}" class="ajax" data-title="{{ item.coach_name }}">
  55. <img src="{{ item.coach_avatar }}"/>
  56. </a>
  57. <div class="teachers-details">
  58. <h5>
  59. <a href="{{ item.coach_url }}" class="ajax" data-title="{{ item.coach_name }}">
  60. {{ item.coach_name }}
  61. </a>
  62. </h5>
  63. </div>
  64. </div>
  65. </div>
  66. {% if item.edit_actions != '' %}
  67. <div class="admin-actions">
  68. {% if item.document == '' %}
  69. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  70. <i class="fa fa-pencil" aria-hidden="true"></i>
  71. </a>
  72. {% else %}
  73. <div class="btn-group" role="group">
  74. <a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
  75. <i class="fa fa-pencil" aria-hidden="true"></i>
  76. </a>
  77. {{ item.document }}
  78. </div>
  79. {% endif %}
  80. </div>
  81. {% endif %}
  82. </div>
  83. <div class="description">
  84. <h4 class="title">
  85. <a href="{{ item.edit_actions }}">{{ item.title }}</a>
  86. </h4>
  87. <div>
  88. <span><i class="fa fa-book" aria-hidden="true"></i> {{ item.num_courses }}</span>
  89. <span><i class="fa fa-user" aria-hidden="true"></i> {{ item.num_users }}</span>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. {% endfor %}
  95. </div>
  96. </div>
  97. {#{% endif %}#}