process.html.twig 5.3 KB

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