process_confirm.html.twig 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {% autoescape false %}
  2. <div class="row">
  3. <div class="col-sm-6 col-md-5">
  4. <h3 class="page-header">{{ 'UserInformation'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  5. <dl class="dl-horizontal">
  6. <dt>{{ 'Name'|get_lang }}<dt>
  7. <dd>{{ user.complete_name }}</dd>
  8. <dt>{{ 'Username'|get_lang }}<dt>
  9. <dd>{{ user.username }}</dd>
  10. <dt>{{ 'EmailAddress'|get_lang }}<dt>
  11. <dd>{{ user.email }}</dd>
  12. </dl>
  13. </div>
  14. <div class="col-sm-6 col-md-7">
  15. {% if buying_course %}
  16. <div class="row">
  17. <div class="col-sm-6 col-md-5">
  18. <p>
  19. <img alt="{{ course.title }}" class="img-responsive" src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
  20. </p>
  21. <p class="lead text-right">{{ course.currency }} {{ course.price }}</p>
  22. </div>
  23. <div class="col-sm-6 col-md-7">
  24. <h3 class="page-header">{{ course.title }}</h3>
  25. <ul class="items-teacher list-unstyled">
  26. {% for teacher in course.teachers %}
  27. <li><em class="fa fa-user"></em> {{ teacher }}</li>
  28. {% endfor %}
  29. </ul>
  30. <p>
  31. <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() }}">
  32. {{'Description'|get_lang }}
  33. </a>
  34. </p>
  35. </div>
  36. </div>
  37. {% elseif buying_session %}
  38. <h3 class="page-header">{{ session.name }}</h3>
  39. <div class="row">
  40. <div class="col-sm-12 col-md-5">
  41. <p>
  42. <img alt="{{ session.name }}" class="img-responsive" src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
  43. </p>
  44. <p class="lead text-right">{{ session.currency }} {{ session.price }}</p>
  45. </div>
  46. <div class="col-sm-12 col-md-7">
  47. <p>{{ session.dates.display }}</p>
  48. <dl>
  49. {% for course in session.courses %}
  50. <dt>{{ course.title }}</dt>
  51. {% for coach in course.coaches %}
  52. <dd><em class="fa fa-user fa-fw"></em> {{ coach }}</dd>
  53. {% endfor %}
  54. {% endfor %}
  55. </dl>
  56. </div>
  57. </div>
  58. {% elseif buying_service %}
  59. <h3 class="page-header">{{ service.service.name }}</h3>
  60. <div class="row">
  61. <div class="col-sm-12 col-md-5">
  62. <p>
  63. {% if service.node_type == 0 %}
  64. <img alt="{{ service.service.name }}" class="img-responsive" src="{{ 'session_default.png'|icon() }}">
  65. {% elseif service.node_type == 1 %}
  66. <img alt="{{ service.service.name }}" class="img-responsive" style="margin: auto;" src="{{ _p.web }}plugin/buycourses/resources/img/bc-user.png">
  67. {% elseif service.node_type == 2 %}
  68. <img alt="{{ service.service.name }}" class="img-responsive" style="margin: auto;" src="{{ _p.web }}plugin/buycourses/resources/img/bc-course.png">
  69. {% elseif service.node_type == 3 %}
  70. <img alt="{{ service.service.name }}" class="img-responsive" style="margin: auto;" src="{{ _p.web }}plugin/buycourses/resources/img/bc-session.png">
  71. {% endif %}
  72. </p>
  73. <p class="lead text-right">{{ service.currency == 'BRL' ? 'R$' : service.currency }} {{ service.price }}</p>
  74. </div>
  75. <div class="col-sm-12 col-md-7">
  76. <p><b>{{ 'StartDate'|get_plugin_lang('BuyCoursesPlugin') }}</b></p>
  77. <li>{{ service.date_start | format_date() }}</li>
  78. <p><b>{{ 'EndDate'|get_plugin_lang('BuyCoursesPlugin') }}</b></p>
  79. <li>{{ service.date_end | format_date() }}</li>
  80. </div>
  81. </div>
  82. {% endif %}
  83. </div>
  84. </div>
  85. <div class="row">
  86. <div class="col-xs-12">
  87. <h3 class="page-header">{{ 'BankAccountInformation'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  88. <div class="table-responsive">
  89. <table class="table table-striped table-hover">
  90. <thead>
  91. <tr>
  92. <th>{{ 'Name'|get_lang }}</th>
  93. <th class="text-center">{{ 'BankAccount'|get_plugin_lang('BuyCoursesPlugin') }}</th>
  94. <th class="text-center">{{ 'SWIFT'|get_plugin_lang('BuyCoursesPlugin') }}</th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. {% for account in transfer_accounts %}
  99. <tr>
  100. <td>{{ account.name }}</td>
  101. <td class="text-center">{{ account.account }}</td>
  102. <td class="text-center">{{ account.swift }}</td>
  103. </tr>
  104. {% endfor %}
  105. </tbody>
  106. </table>
  107. </div>
  108. <p>{{ 'OnceItIsConfirmedYouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'|get_plugin_lang('BuyCoursesPlugin') }}</p>
  109. </div>
  110. </div>
  111. {{ form }}
  112. {% endautoescape %}