success.html.twig 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {% autoescape false %}
  2. <div class="alert alert-info">
  3. {{ 'PayPalPaymentOKPleaseConfirm'|get_plugin_lang('BuyCoursesPlugin') }}
  4. </div>
  5. <div class="row">
  6. <div class="col-sm-6 col-md-5">
  7. <h3 class="page-header">{{ 'UserInformation'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  8. <dl class="dl-horizontal">
  9. <dt>{{ 'Name'|get_lang }}<dt>
  10. <dd>{{ user.complete_name }}</dd>
  11. <dt>{{ 'Username'|get_lang }}<dt>
  12. <dd>{{ user.username }}</dd>
  13. <dt>{{ 'EmailAddress'|get_lang }}<dt>
  14. <dd>{{ user.email }}</dd>
  15. </dl>
  16. </div>
  17. <div class="col-sm-6 col-md-7">
  18. {% if buying_course %}
  19. <div class="row">
  20. <div class="col-sm-6 col-md-5">
  21. <p>
  22. <img alt="{{ course.title }}" class="img-responsive" src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
  23. </p>
  24. <p class="lead text-right">{{ course.currency }} {{ course.price }}</p>
  25. </div>
  26. <div class="col-sm-6 col-md-7">
  27. <h3 class="page-header">{{ course.title }}</h3>
  28. <ul class="items-teacher list-unstyled">
  29. {% for teacher in course.teachers %}
  30. <li><em class="fa fa-user"></em> {{ teacher }}</li>
  31. {% endfor %}
  32. </ul>
  33. <p>
  34. <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() }}">
  35. {{'Description'|get_lang }}
  36. </a>
  37. </p>
  38. </div>
  39. </div>
  40. {% elseif buying_session %}
  41. <h3 class="page-header">{{ session.name }}</h3>
  42. <div class="row">
  43. <div class="col-sm-12 col-md-5">
  44. <p>
  45. <img alt="{{ session.name }}" class="img-responsive" src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
  46. </p>
  47. <p class="lead text-right">{{ session.currency }} {{ session.price }}</p>
  48. </div>
  49. <div class="col-sm-12 col-md-7">
  50. <p>{{ session.dates.display }}</p>
  51. <dl>
  52. {% for course in session.courses %}
  53. <dt>{{ course.title }}</dt>
  54. {% for coach in course.coaches %}
  55. <dd><em class="fa fa-user fa-fw"></em> {{ coach }}</dd>
  56. {% endfor %}
  57. {% endfor %}
  58. </dl>
  59. </div>
  60. </div>
  61. {% endif %}
  62. </div>
  63. </div>
  64. {{ form }}
  65. {% endautoescape %}