process.tpl 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <div class="actions">
  2. <a href="{{ _p.web }}main/auth/courses.php" title="{{ "Back"|get_lang }}">
  3. <img src="{{ "back.png"|icon(32) }}" width="32" height="32" alt="{{ "Back"|get_lang }}"
  4. title="{{ "Back"|get_lang }}"/>
  5. </a>
  6. </div>
  7. <div class="page-header">
  8. <h3>{{ 'PurchaseData'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  9. </div>
  10. <div class="row">
  11. <div class="col-md-12">
  12. <div class="panel panel-default panel-box-buy">
  13. <div class="panel-body">
  14. <div class="buy-info">
  15. {% if buying_course %}
  16. <div class="row">
  17. <div class="col-md-3">
  18. <a class="ajax" data-title="{{ course.title }}"
  19. href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}">
  20. <img alt="{{ course.title }}" class="img-rounded img-responsive"
  21. src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
  22. </a>
  23. {% if course.tax_enable %}
  24. <div class="price-details-tax">
  25. {{ 'Price'|get_plugin_lang('BuyCoursesPlugin')}} :
  26. {{ course.item.price_formatted }}
  27. <br>
  28. {{ course.tax_name }} ({{ course.item.tax_perc_show }}%):
  29. {{ course.item.tax_amount_formatted }}
  30. </div>
  31. {% endif %}
  32. <div class="price">
  33. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  34. {{ course.item.total_price_formatted }}
  35. </div>
  36. </div>
  37. <div class="col-md-9">
  38. <div class="buy-item">
  39. <h3 class="title">
  40. <a class="ajax" data-title="{{ course.title }}"
  41. href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}">
  42. {{ course.title }}
  43. </a>
  44. </h3>
  45. {% if course.description %}
  46. <div class="description">
  47. {{ course.description }}
  48. </div>
  49. {% endif %}
  50. {% if course.teachers %}
  51. <div class="coaches">
  52. <p>
  53. {{ 'Teachers'|get_plugin_lang('BuyCoursesPlugin')}} :
  54. {% for teacher in course.teachers %}
  55. <em class="fa fa-user" aria-hidden="true"></em>
  56. <a href="{{ _p.web }}main/social/profile.php?u={{ teacher.id }}"
  57. class="teacher-item"> {{ teacher.name }}</a>,
  58. {% endfor %}
  59. </p>
  60. </div>
  61. {% endif %}
  62. </div>
  63. </div>
  64. </div>
  65. {% elseif buying_session %}
  66. <div class="row">
  67. <div class="col-md-3">
  68. <img
  69. alt="{{ session.name }}"
  70. class="img-rounded img-responsive"
  71. src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
  72. {% if session.tax_enable %}
  73. <div class="price-details-tax">
  74. {{ 'Price'|get_plugin_lang('BuyCoursesPlugin')}} :
  75. {{ session.item.price_formatted }}
  76. <br>
  77. {{ session.tax_name }} ({{ session.item.tax_perc_show }}%):
  78. {{ session.item.tax_amount_formatted }}
  79. </div>
  80. {% endif %}
  81. <div class="price">
  82. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  83. {{ session.item.total_price_formatted }}
  84. </div>
  85. </div>
  86. <div class="col-md-9">
  87. <div class="buy-item">
  88. <h3 class="title">{{ session.name }}</h3>
  89. {% if session.description %}
  90. <div class="description">
  91. {{ session.description }}
  92. </div>
  93. {% endif %}
  94. <div class="date">
  95. <em class="fa fa-calendar" aria-hidden="true"></em> {{ session.dates.display }}
  96. </div>
  97. <div class="coaches">
  98. {% for course in session.courses %}
  99. <p class="course"><em class="fa fa-book" aria-hidden="true"></em> {{ course.title }}
  100. </p>
  101. <p>
  102. {{ 'Teachers'|get_plugin_lang('BuyCoursesPlugin')}} :
  103. {% if course.coaches|length %}
  104. {% for coach in course.coaches %}
  105. <em class="fa fa-user" aria-hidden="true"></em>
  106. <a href="{{ _p.web }}main/social/profile.php?u={{ coach.id }}"
  107. class="teacher-item"> {{ coach.name }}</a>,
  108. {% endfor %}
  109. {% endif %}
  110. </p>
  111. {% endfor %}
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. {% endif %}
  117. </div>
  118. <div class="buy-summary">
  119. <h3>{{ 'PaymentMethods'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  120. {{ form }}
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. <script>
  127. $(function () {
  128. $("label").removeClass('control-label');
  129. $('.form_required').remove();
  130. $("small").remove();
  131. $("label[for=submit]").remove();
  132. });
  133. </script>