service_process.tpl 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price_without_tax }}
  26. <br>
  27. {{ service.tax_name }} ({{ service.tax_perc_show }}%):
  28. {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.tax_amount }}
  29. </div>
  30. <div class="price">
  31. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  32. {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price_with_tax }}
  33. </div>
  34. {% else %}
  35. <div class="price">
  36. {{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} :
  37. {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}
  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-money" aria-hidden="true"></em>
  70. {{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}
  71. {% if service.tax_enable %}
  72. : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price_with_tax }}
  73. {% else %}
  74. : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}
  75. {% endif %}
  76. / {{ service.duration_days == 0 ? 'NoLimit'|get_lang : service.duration_days ~ ' ' ~ 'Days'|get_lang }}
  77. </li>
  78. <li><em class="fa-li fa fa-user" aria-hidden="true"></em> {{ service.owner_name }}</li>
  79. </ul>
  80. </div>
  81. </div>
  82. </div>
  83. {% endif %}
  84. </div>
  85. <div class="buy-summary">
  86. <h3>{{ 'PaymentMethods'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  87. {{ form }}
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <script>
  94. $(document).ready(function () {
  95. $("label").removeClass('control-label');
  96. $('.form_required').remove();
  97. $("small").remove();
  98. $("label[for=submit]").remove();
  99. });
  100. </script>