service_process.tpl 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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_service %}
  16. <div class="row">
  17. <div class="col-md-3">
  18. <a href='{{ _p.web }}service/{{ service.id }}'>
  19. <img alt="{{ service.name }}" class="img-rounded img-responsive"
  20. src="{{ service.image ? service.image : 'session_default.png'|icon() }}">
  21. </a>
  22. {% if service.tax_enable %}
  23. <div class="price-details-tax">
  24. {{ 'Price'|get_plugin_lang('BuyCoursesPlugin')}} :
  25. {{ service.price_formatted }}
  26. <br>
  27. {{ service.tax_name }} ({{ service.tax_perc_show }}%):
  28. {{ service.tax_amount_formatted }}
  29. </div>
  30. <div class="price">
  31. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  32. {{ service.total_price_formatted }}
  33. </div>
  34. {% else %}
  35. <div class="price">
  36. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  37. {{ service.total_price_formatted }}
  38. </div>
  39. {% endif %}
  40. </div>
  41. <div class="col-md-9">
  42. <div class="buy-item">
  43. <h3 class="title">
  44. <a href='{{ _p.web }}service/{{ service.id }}'>{{ service.name }}</a>
  45. </h3>
  46. {% if service.description %}
  47. <div class="description">
  48. {{ service.description }}
  49. </div>
  50. {% endif %}
  51. <ul class="fa-ul list-description">
  52. {% if service.applies_to %}
  53. <li>
  54. <em class="fa-li fa fa-hand-o-right" aria-hidden="true"></em>
  55. {% if service.applies_to == 0 %}
  56. {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') ~ ' ' ~ 'None'|get_lang }}
  57. {% elseif service.applies_to == 1 %}
  58. {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') ~ ' ' ~ 'User'|get_lang }}
  59. {% elseif service.applies_to == 2 %}
  60. {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') ~ ' ' ~ 'Course'|get_lang }}
  61. {% elseif service.applies_to == 3 %}
  62. {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') ~ ' ' ~ 'Session'|get_lang }}
  63. {% elseif service.applies_to == 4 %}
  64. {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') ~ ' ' ~ 'TemplateTitleCertificate'|get_lang }}
  65. {% endif %}
  66. </li>
  67. {% endif %}
  68. <li>
  69. <em class="fa-li fa fa-clock-o" aria-hidden="true"></em>
  70. {{ service.duration_days == 0 ? 'NoLimit'|get_lang : service.duration_days ~ ' ' ~ 'Days'|get_lang }}
  71. </li>
  72. <li><em class="fa-li fa fa-user" aria-hidden="true"></em> {{ service.owner_name }}</li>
  73. </ul>
  74. </div>
  75. </div>
  76. </div>
  77. {% endif %}
  78. </div>
  79. <div class="buy-summary">
  80. <h3>{{ 'PaymentMethods'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  81. {{ form }}
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <script>
  88. $(function () {
  89. $("label").removeClass('control-label');
  90. $('.form_required').remove();
  91. $("small").remove();
  92. $("label[for=submit]").remove();
  93. });
  94. </script>