process.tpl 6.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <div class="row">
  2. <div class="col-md-5 panel panel-default buycourse-panel-default">
  3. <h3 class="panel-heading">{{ 'PurchaseData'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  4. <legend></legend>
  5. <div class="row">
  6. {% if buying_course %}
  7. <div class="col-sm-12 col-md-12 col-xs-12">
  8. <a class="ajax" data-title="{{ course.title }}" href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}">
  9. <img alt="{{ course.title }}" class="img-responsive" style="width: 100%;" src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
  10. </a>
  11. </div>
  12. <div class="col-sm-12 col-md-12 col-xs-12">
  13. <h3>
  14. <a class="ajax" data-title="{{ course.title }}" href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}">{{ course.title }}</a>
  15. </h3>
  16. <ul class="list-unstyled">
  17. {% for teacher in course.teachers %}
  18. <li><em class="fa fa-user"></em> {{ teacher }}</li>
  19. {% endfor %}
  20. </ul>
  21. <p id="n-price" class="lead text-right" style="color: white;"><span class="label label-primary">{{ course.currency == 'BRL' ? 'R$' : course.currency }} {{ course.price }}</span></p>
  22. <p id="s-price" class="lead text-right"></p>
  23. </div>
  24. {% elseif buying_session %}
  25. <div class="col-sm-12 col-md-12 col-xs-12">
  26. <p>
  27. <img alt="{{ session.name }}" class="img-responsive" style="width: 100%;" src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
  28. </p>
  29. </div>
  30. <div class="col-sm-12 col-md-12 col-xs-12">
  31. <h3>{{ session.name }}</h3>
  32. <p><em class="fa fa-calendar fa-fw"></em> {{ session.dates.display }}</p>
  33. <ul class="list-unstyled">
  34. {% for course in session.courses %}
  35. <li>
  36. <em class="fa fa-book fa-fw"></em> {{ course.title }}
  37. {% if course.coaches|length %}
  38. <ul>
  39. {% for coach in course.coaches %}
  40. <li><em class="fa fa-user fa-fw"></em>{{ coach }}</li>
  41. {% endfor %}
  42. </ul>
  43. {% endif %}
  44. </li>
  45. {% endfor %}
  46. </ul>
  47. <p id="n-price" class="lead text-right" style="color: white;"><span class="label label-primary">{{ session.currency == 'BRL' ? 'R$' : session.currency }} {{ session.price }}</span></p>
  48. <p id="s-price" class="lead text-right"></p>
  49. </div>
  50. {% elseif buying_service %}
  51. <div class="col-sm-12 col-md-12 col-xs-12">
  52. <a href='{{ _p.web }}service/{{ service.id }}'>
  53. <img alt="{{ service.name }}" class="img-responsive" src="{{ service.image ? _p.web ~ 'plugin/buycourses/uploads/services/images/' ~ service.image : 'session_default.png'|icon() }}">
  54. </a>
  55. </div>
  56. <div class="col-sm-12 col-md-12 col-xs-12">
  57. <h3>
  58. <a href='{{ _p.web }}service/{{ service.id }}'>{{ service.name }}</a>
  59. </h3>
  60. <ul class="list-unstyled">
  61. {% if service.applies_to == 0 %}
  62. <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'None' | get_lang }}</li>
  63. {% elseif service.applies_to == 1 %}
  64. <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'User' | get_lang }}</li>
  65. {% elseif service.applies_to == 2 %}
  66. <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'Course' | get_lang }}</li>
  67. {% elseif service.applies_to == 3 %}
  68. <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'Session' | get_lang }}</li>
  69. {% elseif service.applies_to == 4 %}
  70. <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'TemplateTitleCertificate' | get_lang }}</li>
  71. {% endif %}
  72. <li><em class="fa fa-money"></em> {{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }} : {{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }} / {{ service.duration_days == 0 ? 'NoLimit' | get_lang : service.duration_days ~ ' ' ~ 'Days' | get_lang }} </li>
  73. <li><em class="fa fa-user"></em> {{ service.owner_name }}</li>
  74. <li><em class="fa fa-align-justify"></em> {{ service.description }}</li>
  75. </ul>
  76. <p id="n-price" class="lead text-right" style="color: white;"><span class="label label-primary">{{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}</span></p>
  77. <p id="s-price" class="lead text-right"></p>
  78. </div>
  79. {% endif %}
  80. </div>
  81. </div>
  82. <div class="col-md-1">
  83. </div>
  84. <div class="col-md-6 panel panel-default buycourse-panel-default">
  85. <h3 class="panel-heading">{{ 'PaymentMethods' | get_plugin_lang('BuyCoursesPlugin') }}</h3>
  86. {{ form }}
  87. </div>
  88. </div>
  89. <script>
  90. $(document).ready(function() {
  91. $("label").removeClass('control-label');
  92. $('.form_required').remove();
  93. $("small").remove();
  94. $("label[for=submit]").remove();
  95. });
  96. </script>