templates/uniqskills/catalogue/course_catalogue_courses.html.twig line 1

Open in your IDE?
  1. <div class="courses col-md-9 col-sm-12" style="padding-right: 0px;">
  2.     {# --- Type of price, default NET ---  #}
  3.     {% set typeParam = app.request.query.get('apivalue') %}
  4.     {% if typeParam is not empty and (typeParam == 'netto' or typeParam == 'brutto') %}
  5.         {% set initialType = typeParam %}
  6.     {% else %}
  7.         {% set initialType = 'netto' %}
  8.     {% endif %}
  9.     {# --- END OF: Type of price, default NET ---  #}
  10.     <div class="switch-net-gross-box--category">
  11.         <span>Pokazuj ceny jako:</span>
  12.         <div class="btn-group btn-group-sm" role="group" aria-label="Switch net/gross" style="padding-left: 4px;">
  13.             <button type="button"
  14.                     class="btn btn-info {{ initialType == 'netto' ? 'active' : '' }} js-switch-listing-netto">
  15.                 netto
  16.             </button>
  17.             <button type="button"
  18.                     class="btn btn-info {{ initialType == 'brutto' ? 'active' : '' }} js-switch-listing-brutto">
  19.                 brutto
  20.             </button>
  21.         </div>
  22.     </div>
  23.     {% if categorySlug is same as('onkologia') %}
  24.         <div>
  25.             <img src="{{ asset('/uniqskills/img/kompedium-onkologa.jpg') }}" alt="" class="img-responsive">
  26.         </div>
  27.     {% endif %}
  28.     <div id="spinner"></div>
  29.     {% for item in pagination %}
  30.         {% include '/uniqskills/catalogue/course_catalogue_item.html.twig' with {'item': item} %}
  31.     {% endfor %}
  32.     {% if pagination|length == 0 %}
  33.         <p>{{ 'uniqskills.catalog.courses.noCourse'|trans }}</p>
  34.     {% endif %}
  35. </div>
  36. <div class="pagination col-sm-12">
  37.     {{ knp_pagination_render(pagination) }}
  38. </div>