templates/uniqskills/cart/_partials/steps.html.twig line 1

Open in your IDE?
  1. {% set step = 1 %}
  2. {% set locale = app.session.get('userLocale', 'pl') %}
  3. <div class="cart__steps steps2" {% if active is defined and active != null %}data-activestep="{{ active }}"{% endif %}>
  4.     <span
  5.        class="steps2__single{% if active == 1 %} steps2__single-active{% endif %}" {% if locale == 'es' %}style="font-size: 12px; letter-spacing: unset;"{% endif %}>
  6.         {% if locale == 'de' %}<span style="font-size: 12px;">{% endif %}
  7.         {% if locale == 'es' %}{{ 'uniqskills.form.order.step1'|trans }}{% else %}{{ 'uniqskills.form.order.step'|trans }}{% endif %}
  8.         {% if locale != 'es' %}{{ step }}{% endif %} {% set step = step + 1 %}
  9.     </span>
  10.     {% if (cart is defined and (cart.hasEventProduct or cart.hasUniqskillsMultiUserCourse)) or (order is defined and order.hasEventProducts) %}
  11.         <span
  12.            class="steps2__single{% if active == 2 %} steps2__single-active{% endif %}">
  13.             {% if locale == 'de' %}<span style="font-size: 12px;">{% endif %}
  14.                 {{ 'uniqskills.form.order.step'|trans }}
  15.             {% if locale == 'de' %}</span>{% endif %}
  16.             {{ step }} {% set step = step + 1 %}
  17.         </span>
  18.     {% endif %}
  19.     <span
  20.        class="steps2__single{% if active == 3 %} steps2__single-active{% endif %}" {% if locale == 'es' %}style="font-size: 12px; letter-spacing: unset;"{% endif %}>
  21.         {% if locale == 'de' %}<span style="font-size: 12px;">{% endif %}
  22.         {% if locale == 'es' %}{{'uniqskills.form.order.step2'|trans }}{% else %}{{ 'uniqskills.form.order.step'|trans }}{% endif %}
  23.         {% if locale == 'de' %}</span>{% endif %}
  24.         {% if locale != 'es' %}{{ step }}{% endif %} {% set step = step + 1 %}
  25.     </span>
  26.     <span
  27.        class="steps2__single{% if active == 4 %} steps2__single-active{% endif %}" {% if locale == 'es' %}style="font-size: 12px; letter-spacing: unset;"{% endif %}>
  28.         {% if locale == 'de' %}<span style="font-size: 12px;">{% endif %}
  29.         {% if locale == 'es' %}{{ 'uniqskills.form.order.step3'|trans }}</span>{% else %}{{ 'uniqskills.form.order.step'|trans }}{% endif %}
  30.         {% if locale == 'de' %}</span>{% endif %}
  31.         {% if locale != 'es' %}{{ step }}{% endif %}
  32.     </span>
  33. </div>