modules/QSL/Make/templates/web/customer/modules/QSL/Make/garage/body.twig line 1

Open in your IDE?
  1. {##
  2.  # My Garage dropdown
  3.  #}
  4. <div id="my-garage-desktop">
  5.   <div id="my-garage" class="my-garage dropdown" title="{{ t('My garage') }}">
  6.     <a class="my-garage__opener" data-target="#" data-toggle="dropdown">
  7.       <span class="my-garage__icon{% if this.getStoredSelectorsCount() %} active{% endif %}"></span>
  8.       <span class="my-garage__label">{{ t('My garage') }}{% if this.getStoredSelectorsCount() %}: {{ this.getStoredSelectorsCount() }}{% endif %}</span>
  9.     </a>
  10.     <div class="my-garage__dropdown{% if this.displayStoredSelectors() %} has-vehicles{% endif %} dropdown-menu">
  11.       {% if this.displayStoredSelectors() %}
  12.         {{ this.displayCommentedData(this.getCommentedData()) }}
  13.         <div class="my-garage__dropdown-head">
  14.           <div class="my-garage__dropdown-title">{{ t('My garage') }}</div>
  15.           <a href="javascript:void(0);" class="my-garage__dropdown-clear remove-all-stored-selectors" aria-label="{{ t('Clear all (MMY)') }}">
  16.             {{ t('Clear all') }}
  17.           </a>
  18.         </div>
  19.         <ul>
  20.           {% for selector in this.getStoredSelectors() %}
  21.             <li class="my-garage__item{% if this.getActiveLevelId() == selector.id %} selected-vehicle{% endif %}">
  22.               <a href="{{ selector.url }}" class="my-garage__item-link">
  23.                 <span class="my-garage__item-icon"></span>
  24.                 <span class="my-garage__item-name">
  25.                   {{ selector.name }}
  26.                 </span>
  27.               </a>
  28.               <a href="javascript:void(0);"
  29.                  class="my-garage__item-remove remove-single-stored-selector"
  30.                  data-selectorid="{{ selector.id }}"
  31.               >
  32.                 <span class="visually-hidden">{{ t('Remove from garage') }}</span>
  33.               </a>
  34.             </li>
  35.           {% endfor %}
  36.         </ul>
  37.         <div class="my-garage__button-box">
  38.           {{ widget('\\QSL\\Make\\View\\Button\\AddVehiclePopupButton', id='add-to-garage', label='Add vehicle', style='btn-block') }}
  39.         </div>
  40.       {% else %}
  41.         <div class="my-garage__dropdown-text">
  42.           {{ t('Store vehicles in your garage. Easily find parts and accessories.') }}
  43.         </div>
  44.         <div class="my-garage__add-button">
  45.           {{ widget('\\QSL\\Make\\View\\Button\\AddVehiclePopupButton', id='add-to-garage-new', label='Add vehicle', style='regular-main-button btn-block') }}
  46.         </div>
  47.       {% endif %}
  48.     </div>
  49.   </div>
  50. </div>