process.tpl 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <script type='text/javascript' src="../js/buycourses.js"></script>
  2. <div class="row">
  3. <div class="col-md-7">
  4. <h3 class="page-header">{{ 'PurchaseData'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  5. <div class="row">
  6. {% if buying_course %}
  7. <div class="col-sm-6 col-md-5">
  8. <p>
  9. <img alt="{{ course.title }}" class="img-responsive" src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
  10. </p>
  11. <p class="lead text-right">{{ course.currency }} {{ course.price }}</p>
  12. </div>
  13. <div class="col-sm-6 col-md-7">
  14. <h3 class="page-header">{{ course.title }}</h3>
  15. <ul class="items-teacher list-unstyled">
  16. {% for teacher in course.teachers %}
  17. <li><em class="fa fa-user"></em> {{ teacher }}</li>
  18. {% endfor %}
  19. </ul>
  20. <p>
  21. <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() }}">
  22. {{'Description'|get_lang }}
  23. </a>
  24. </p>
  25. </div>
  26. {% elseif buying_session %}
  27. <div class="col-sm-6 col-md-5">
  28. <p>
  29. <img alt="{{ session.name }}" class="img-responsive" src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
  30. </p>
  31. <p class="lead text-right">{{ session.currency }} {{ session.price }}</p>
  32. </div>
  33. <div class="col-sm-6 col-md-7">
  34. <h3 class="page-header">{{ session.name }}</h3>
  35. <p>{{ session.dates.display }}</p>
  36. <dl>
  37. {% for course in session.courses %}
  38. <dt>{{ course.title }}</dt>
  39. {% for coach in course.coaches %}
  40. <dd><em class="fa fa-user fa-fw"></em> {{ coach }}</dd>
  41. {% endfor %}
  42. {% endfor %}
  43. </dl>
  44. </div>
  45. {% endif %}
  46. </div>
  47. </div>
  48. <div class="col-md-5">
  49. {{ form }}
  50. </div>
  51. </div>