grid_session.tpl 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {% if _u.status == '5' %}
  2. <!-- list cuourses 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">
  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 %}