custom/static-plugins/WabsAuth/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Parent/storefront/base.html.twig' %}
  2. {% block base_header %}
  3.     {{ parent() }}
  4.     {% if context.customer != null and context.customer.group != null and context.customer.group.name == 'GC' %}
  5.         <div class="group-selection-popup-overlay">
  6.             <div class="group-selection-popup-container">
  7.                 <form action="{{ path('frontend.account.group.change') }}">
  8.                     <div class="group-selection-popup-header">
  9.                         <div class="header-line">Anmeldeprofil auswählen</div>
  10.                         <div class="group-selection-popup-header-text">
  11.                             Du bist mehreren Profilen zugeordnet. Bitte wähle ein Profil aus, mit dem du dich im Shop
  12.                             anmelden möchtest.
  13.                         </div>
  14.                     </div>
  15.                     <div class="group-selection-popup-inner">
  16.                         {% for group in context.customer.customFields['igm_groups'] %}
  17.                             <div class="group-selection-item">
  18.                                 <label class="group-selection-label">
  19.                                     {% if loop.first %}
  20.                                         <input type="radio" id="group-selection-{{ group[0] }}" name="group-selection"
  21.                                                value="{{ group[0] }}" checked>
  22.                                     {% else %}
  23.                                         <input type="radio" id="group-selection-{{ group[0] }}" name="group-selection"
  24.                                                value="{{ group[0] }}">
  25.                                     {% endif %}
  26.                                     <i>{% if context.customer.customFields['igm_account_data']['gender'] == 'W' %}{{ group[1] }} {% else %} {{ group[2] }} {% endif %}</i>
  27.                                 </label>
  28.                             </div>
  29.                         {% endfor %}
  30.                     </div>
  31.                     <div class="group-selection-popup-buttons">
  32.                         <a href="{{ path('frontend.account.logout.page') }}" class="logout-button">Abbrechen</a>
  33.                         <button type="submit" class="accept-button">Auswählen</button>
  34.                     </div>
  35.                 </form>
  36.             </div>
  37.         </div>
  38.     {% endif %}
  39. {% endblock %}