process.tpl 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.currency == 'BRL' ? 'R$' : course.currency }} {{ course.price_without_tax }}
  27. <br>
  28. {{ course.tax_name }} ({{ course.tax_perc }}%):
  29. {{ course.currency == 'BRL' ? 'R$' : course.currency }} {{ course.tax_amount }}
  30. </div>
  31. {% endif %}
  32. <div class="price">
  33. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  34. {{ course.currency == 'BRL' ? 'R$' : course.currency }} {{ course.price }}
  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. <div class="coaches">
  51. <p>
  52. {{ 'Teachers'|get_plugin_lang('BuyCoursesPlugin')}} :
  53. {% for teacher in course.teachers %}
  54. <em class="fa fa-user" aria-hidden="true"></em>
  55. <a href="{{ _p.web }}main/social/profile.php?u={{ teacher.id }}"
  56. class="teacher-item"> {{ teacher.name }}</a>,
  57. {% endfor %}
  58. </p>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. {% elseif buying_session %}
  64. <div class="row">
  65. <div class="col-md-3">
  66. <img alt="{{ session.name }}" class="img-rounded img-responsive""
  67. src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
  68. {% if session.tax_enable %}
  69. <div class="price-details-tax">
  70. {{ 'Price'|get_plugin_lang('BuyCoursesPlugin')}} :
  71. {{ session.currency == 'BRL' ? 'R$' : session.currency }} {{ session.price_without_tax }}
  72. <br>
  73. {{ session.tax_name }} ({{ session.tax_perc }}%):
  74. {{ session.currency == 'BRL' ? 'R$' : session.currency }} {{ session.tax_amount }}
  75. </div>
  76. {% endif %}
  77. <div class="price">
  78. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  79. {{ session.currency == 'BRL' ? 'R$' : session.currency }} {{ session.price }}
  80. </div>
  81. </div>
  82. <div class="col-md-9">
  83. <div class="buy-item">
  84. <h3 class="title">{{ session.name }}</h3>
  85. {% if session.description %}
  86. <div class="description">
  87. {{ session.description }}
  88. </div>
  89. {% endif %}
  90. <div class="date">
  91. <em class="fa fa-calendar" aria-hidden="true"></em> {{ session.dates.display }}
  92. </div>
  93. <div class="coaches">
  94. {% for course in session.courses %}
  95. <p class="course"><em class="fa fa-book" aria-hidden="true"></em> {{ course.title }}
  96. </p>
  97. <p>
  98. {{ 'Teachers'|get_plugin_lang('BuyCoursesPlugin')}} :
  99. {% if course.coaches|length %}
  100. {% for coach in course.coaches %}
  101. <em class="fa fa-user" aria-hidden="true"></em>
  102. <a href="{{ _p.web }}main/social/profile.php?u={{ coach.id }}"
  103. class="teacher-item"> {{ coach.name }}</a>,
  104. {% endfor %}
  105. {% endif %}
  106. </p>
  107. {% endfor %}
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. {% endif %}
  113. </div>
  114. <div class="buy-summary">
  115. <h3>{{ 'PaymentMethods'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  116. {{ form }}
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <script>
  123. $(document).ready(function () {
  124. $("label").removeClass('control-label');
  125. $('.form_required').remove();
  126. $("small").remove();
  127. $("label[for=submit]").remove();
  128. });
  129. </script>