1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <div class="row">
- <div class="col-md-5 panel panel-default buycourse-panel-default">
- <h3 class="panel-heading">{{ 'PurchaseData'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
- <legend></legend>
- <div class="row">
- {% if buying_course %}
- <div class="col-sm-12 col-md-12 col-xs-12">
- <a class="ajax" data-title="{{ course.title }}" href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}">
- <img alt="{{ course.title }}" class="img-responsive" style="width: 100%;" src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
- </a>
- </div>
- <div class="col-sm-12 col-md-12 col-xs-12">
- <h3>
- <a class="ajax" data-title="{{ course.title }}" href="{{ _p.web_ajax ~ 'course_home.ajax.php?' ~ {'a': 'show_course_information', 'code': course.code}|url_encode() }}">{{ course.title }}</a>
- </h3>
- <ul class="list-unstyled">
- {% for teacher in course.teachers %}
- <li><em class="fa fa-user"></em> {{ teacher }}</li>
- {% endfor %}
- </ul>
- <p id="n-price" class="lead text-right" style="color: white;"><span class="label label-primary">{{ course.currency == 'BRL' ? 'R$' : course.currency }} {{ course.price }}</span></p>
- <p id="s-price" class="lead text-right"></p>
- </div>
- {% elseif buying_session %}
- <div class="col-sm-12 col-md-12 col-xs-12">
- <p>
- <img alt="{{ session.name }}" class="img-responsive" style="width: 100%;" src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
- </p>
- </div>
- <div class="col-sm-12 col-md-12 col-xs-12">
- <h3>{{ session.name }}</h3>
- <p><em class="fa fa-calendar fa-fw"></em> {{ session.dates.display }}</p>
- <ul class="list-unstyled">
- {% for course in session.courses %}
- <li>
- <em class="fa fa-book fa-fw"></em> {{ course.title }}
- {% if course.coaches|length %}
- <ul>
- {% for coach in course.coaches %}
- <li><em class="fa fa-user fa-fw"></em>{{ coach }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- <p id="n-price" class="lead text-right" style="color: white;"><span class="label label-primary">{{ session.currency == 'BRL' ? 'R$' : session.currency }} {{ session.price }}</span></p>
- <p id="s-price" class="lead text-right"></p>
- </div>
- {% elseif buying_service %}
- <div class="col-sm-12 col-md-12 col-xs-12">
- <a href='{{ _p.web }}service/{{ service.id }}'>
- <img alt="{{ service.name }}" class="img-responsive" src="{{ service.image ? _p.web ~ 'plugin/buycourses/uploads/services/images/' ~ service.image : 'session_default.png'|icon() }}">
- </a>
- </div>
- <div class="col-sm-12 col-md-12 col-xs-12">
- <h3>
- <a href='{{ _p.web }}service/{{ service.id }}'>{{ service.name }}</a>
- </h3>
- <ul class="list-unstyled">
- {% if service.applies_to == 0 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'None' | get_lang }}</li>
- {% elseif service.applies_to == 1 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'User' | get_lang }}</li>
- {% elseif service.applies_to == 2 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'Course' | get_lang }}</li>
- {% elseif service.applies_to == 3 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'Session' | get_lang }}</li>
- {% elseif service.applies_to == 4 %}
- <li><em class="fa fa-hand-o-right"></em> {{ 'AppliesTo'|get_plugin_lang('BuyCoursesPlugin') }} {{ 'TemplateTitleCertificate' | get_lang }}</li>
- {% endif %}
- <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>
- <li><em class="fa fa-user"></em> {{ service.owner_name }}</li>
- <li><em class="fa fa-align-justify"></em> {{ service.description }}</li>
- </ul>
- <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>
- <p id="s-price" class="lead text-right"></p>
- </div>
- {% endif %}
- </div>
- </div>
- <div class="col-md-1">
- </div>
- <div class="col-md-6 panel panel-default buycourse-panel-default">
- <h3 class="panel-heading">{{ 'PaymentMethods' | get_plugin_lang('BuyCoursesPlugin') }}</h3>
- {{ form }}
- </div>
- </div>
- <script>
- $(document).ready(function() {
- $("label").removeClass('control-label');
- $('.form_required').remove();
- $("small").remove();
- $("label[for=submit]").remove();
- });
- </script>
|