|
|
|
@ -1,58 +1,117 @@ |
|
|
|
<h2 class="page-header">{{ 'PurchaseData'|get_plugin_lang('BuyCoursesPlugin') }}</h2> |
|
|
|
<div class="actions"> |
|
|
|
|
|
|
|
<a href="{{ _p.web }}main/auth/courses.php" title="{{ "Back"|get_lang }}"> |
|
|
|
|
|
|
|
<img src="{{ "back.png"|icon(32) }}" width="32" height="32" alt="{{ "Back"|get_lang }}" |
|
|
|
|
|
|
|
title="{{ "Back"|get_lang }}"/> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="page-header"> |
|
|
|
|
|
|
|
<h3>{{ 'PurchaseData'|get_plugin_lang('BuyCoursesPlugin') }}</h3> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-5"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<div class="thumbnail"> |
|
|
|
<div class="panel panel-default panel-box-buy"> |
|
|
|
{% if buying_course %} |
|
|
|
<div class="panel-body"> |
|
|
|
<a class="ajax" data-title="{{ course.title }}" |
|
|
|
<div class="buy-info"> |
|
|
|
href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}"> |
|
|
|
{% if buying_course %} |
|
|
|
<img alt="{{ course.title }}" class="img-responsive" style="width: 100%;" |
|
|
|
<div class="row"> |
|
|
|
src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}"> |
|
|
|
<div class="col-md-3"> |
|
|
|
</a> |
|
|
|
<a class="ajax" data-title="{{ course.title }}" |
|
|
|
<div class="caption"> |
|
|
|
href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}"> |
|
|
|
<h3> |
|
|
|
<img alt="{{ course.title }}" class="img-rounded img-responsive" |
|
|
|
<a class="ajax" data-title="{{ course.title }}" |
|
|
|
src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}"> |
|
|
|
href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}">{{ course.title }}</a> |
|
|
|
</a> |
|
|
|
</h3> |
|
|
|
<div class="price"> |
|
|
|
<ul class="fa-ul"> |
|
|
|
{{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} : |
|
|
|
{% for teacher in course.teachers %} |
|
|
|
{{ course.currency == 'BRL' ? 'R$' : course.currency }} {{ course.price }} |
|
|
|
<li><em class="fa-li fa fa-user" aria-hidden="true"></em>{{ teacher }}</li> |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
</div> |
|
|
|
</ul> |
|
|
|
<div class="col-md-9"> |
|
|
|
<p id="n-price" class="lead text-right" style="color: white;"> |
|
|
|
<div class="buy-item"> |
|
|
|
<span class="label label-primary">{{ course.currency == 'BRL' ? 'R$' : course.currency }} {{ course.price }}</span> |
|
|
|
<h3 class="title"> |
|
|
|
</p> |
|
|
|
<a class="ajax" data-title="{{ course.title }}" |
|
|
|
<p id="s-price" class="lead text-right"></p> |
|
|
|
href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}"> |
|
|
|
</div> |
|
|
|
{{ course.title }} |
|
|
|
{% elseif buying_session %} |
|
|
|
</a> |
|
|
|
<img alt="{{ session.name }}" class="img-ressponsive" style="width: 100%;" |
|
|
|
</h3> |
|
|
|
src="{{ session.image ? session.image : 'session_default.png'|icon() }}"> |
|
|
|
{% if course.description %} |
|
|
|
<div class="caption"> |
|
|
|
<div class="description"> |
|
|
|
<h3>{{ session.name }}</h3> |
|
|
|
{{ course.description }} |
|
|
|
<ul class="fa-ul"> |
|
|
|
</div> |
|
|
|
<li> |
|
|
|
{% endif %} |
|
|
|
<em class="fa-li fa fa-calendar" aria-hidden="true"></em>{{ session.dates.display }} |
|
|
|
<div class="coaches"> |
|
|
|
</li> |
|
|
|
<p> |
|
|
|
</ul> |
|
|
|
{{ 'Teachers'|get_plugin_lang('BuyCoursesPlugin')}} : |
|
|
|
<ul class="fa-ul"> |
|
|
|
{% for teacher in course.teachers %} |
|
|
|
{% for course in session.courses %} |
|
|
|
<em class="fa fa-user" aria-hidden="true"></em> |
|
|
|
<li> |
|
|
|
<a href="{{ _p.web }}main/social/profile.php?u={{ teacher.id }}" class="teacher-item"> {{ teacher.name }}</a>, |
|
|
|
<em class="fa-li fa fa-book" aria-hidden="true"></em> |
|
|
|
|
|
|
|
{{ course.title }} |
|
|
|
|
|
|
|
{% if course.coaches|length %} |
|
|
|
|
|
|
|
<ul class="fa-ul"> |
|
|
|
|
|
|
|
{% for coach in course.coaches %} |
|
|
|
|
|
|
|
<li><em class="fa-li fa fa-user" aria-hidden="true"></em>{{ coach }}</li> |
|
|
|
|
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{% elseif buying_session %} |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col-md-3"> |
|
|
|
|
|
|
|
<img alt="{{ session.name }}" class="img-rounded img-responsive"" |
|
|
|
|
|
|
|
src="{{ session.image ? session.image : 'session_default.png'|icon() }}"> |
|
|
|
|
|
|
|
<div class="price"> |
|
|
|
|
|
|
|
{{ 'Total'|get_plugin_lang('BuyCoursesPlugin')}} : |
|
|
|
|
|
|
|
{{ session.currency == 'BRL' ? 'R$' : session.currency }} {{ session.price }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-md-9"> |
|
|
|
|
|
|
|
<div class="buy-item"> |
|
|
|
|
|
|
|
<h3 class="title">{{ session.name }}</h3> |
|
|
|
|
|
|
|
{% if session.description %} |
|
|
|
|
|
|
|
<div class="description"> |
|
|
|
|
|
|
|
{{ session.description }} |
|
|
|
|
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</li> |
|
|
|
<div class="date"> |
|
|
|
{% endfor %} |
|
|
|
<em class="fa fa-calendar" aria-hidden="true"></em> {{ session.dates.display }} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<p id="n-price" class="lead text-right" style="color: white;"> |
|
|
|
<div class="coaches"> |
|
|
|
<span class="label label-primary">{{ session.currency == 'BRL' ? 'R$' : session.currency }} {{ session.price }}</span> |
|
|
|
{% for course in session.courses %} |
|
|
|
</p> |
|
|
|
<p class="course"><em class="fa fa-book" aria-hidden="true"></em> {{ course.title }}</p> |
|
|
|
<p id="s-price" class="lead text-right"></p> |
|
|
|
<p> |
|
|
|
|
|
|
|
{{ 'Teachers'|get_plugin_lang('BuyCoursesPlugin')}} : |
|
|
|
|
|
|
|
{% if course.coaches|length %} |
|
|
|
|
|
|
|
{% for coach in course.coaches %} |
|
|
|
|
|
|
|
<em class="fa fa-user" aria-hidden="true"></em> |
|
|
|
|
|
|
|
<a href="{{ _p.web }}main/social/profile.php?u={{ coach.id }}" class="teacher-item"> {{ coach.name }}</a>, |
|
|
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{% elseif buying_service %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="buy-summary"> |
|
|
|
|
|
|
|
<h3>{{ 'PaymentMethods'|get_plugin_lang('BuyCoursesPlugin') }}</h3> |
|
|
|
|
|
|
|
{{ form }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col-md-12"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="thumbnail"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if buying_course %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% elseif buying_session %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% elseif buying_service %} |
|
|
|
{% elseif buying_service %} |
|
|
|
<a href='{{ _p.web }}service/{{ service.id }}'> |
|
|
|
<a href='{{ _p.web }}service/{{ service.id }}'> |
|
|
|
<img alt="{{ service.name }}" class="img-responsive" |
|
|
|
<img alt="{{ service.name }}" class="img-responsive" |
|
|
|
@ -96,16 +155,7 @@ |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-6 col-md-offset-1"> |
|
|
|
|
|
|
|
<div class="panel panel-default buycourse-panel-default"> |
|
|
|
|
|
|
|
<div class="panel-heading"> |
|
|
|
|
|
|
|
<h3 class="panel-title">{{ 'PaymentMethods'|get_plugin_lang('BuyCoursesPlugin') }}</h3> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="panel-body"> |
|
|
|
|
|
|
|
{{ form }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
$(document).ready(function () { |
|
|
|
$(document).ready(function () { |
|
|
|
|