src/Aviatur/TwigBundle/Resources/views/octopus/Flux/Search/Flight/flightSearch_engine.html.twig line 1

Open in your IDE?
  1. <form action ="#" class="search__engine clearfix search-flight js-searchForm js-searchFormFlight">
  2.     {% if cookieLastSearch is defined and cookieLastSearch != null %}
  3.         <div style="display:none">
  4.             <p id="js-cookieLastSearch-origin">{{ cookieLastSearch['origin1'] }}</p>
  5.             <p id="js-cookieLastSearch-destination">{{ cookieLastSearch['destination1'] }}</p>
  6.             <p id="js-cookieLastSearch-originLabel">{{ cookieLastSearch['originLabel1'] }}</p>
  7.             <p id="js-cookieLastSearch-destinationLabel">{{ cookieLastSearch['destinationLabel1'] }}</p>
  8.             <p id="js-cookieLastSearch-date1">{{ cookieLastSearch['date1'] }}</p>
  9.             <p id="js-cookieLastSearch-date2">{% if cookieLastSearch['date2'] is defined %}{{ cookieLastSearch['date2'] }}{% endif %}</p>
  10.             <p id="js-cookieLastSearch-adults">{{ cookieLastSearch['adults'] }}</p>
  11.             <p id="js-cookieLastSearch-children">{{ cookieLastSearch['children'] }}</p>
  12.             <p id="js-cookieLastSearch-infants">{{ cookieLastSearch['infants'] }}</p>
  13.         </div>
  14.     {% endif %}
  15.     {# START .search-header #}
  16.     <div class="search__header clearfix mb-lg-0">
  17.         <h1 class="search__title-principal-flight hide-availengine tooltips text-white">
  18.             {# <span class="tooltips-content hidden-all">Vuelos Baratos</span> #}
  19.             <i class="icon icon_bundle_flight search__title__icon hide-lap-and-up hide-palm"></i>
  20.             {% if articulo is not defined %}
  21.                 {% if promoType is defined %}
  22.                     {% if 'ofertas-' in promoType and 'destinos' not in promoType and 'fin' not in promoType%}
  23.                         {% set promoArray = promoType|split('-') %}
  24.                         <span class="">Busque sus tiquetes baratos </span><span class="hide-portable">
  25.                             {% if promoArray|length == 2 %}
  26.                                 <span>{{promoArray[1]|capitalize}}</span>
  27.                             {% elseif promoArray|length == 3 %}
  28.                                 <span>{{promoArray[1]|capitalize}} {{promoArray[2]|capitalize}}</span>
  29.                             {% elseif promoArray|length == 4 %}
  30.                                 <span>{{promoArray[2]|capitalize}} {{promoArray[3]|capitalize}}</span>
  31.                             {% endif %}
  32.                         </span>
  33.                     {% else %}
  34.                         <!-- b class="">Busque sus vuelos</b -->{#% if app.session.has('operatorId') != 1 %}<b class="hide-portable"> baratos</b>{% endif %#}
  35.                         {# {% if app.session.has('operatorId') != 1 %}<b class="search-title-flight mb-5">Vuelos baratos</b>{% else %}<b class="search-title-flight">Busque sus vuelos</b>{% endif %} #}
  36.                     {% if app.session.has('operatorId') != 1 %}<b class="search-title-flight block text-white font-bold
  37.                                     text-[20px] leading-[28px]
  38.                                     whitespace-normal w-[328px]
  39.                                     lg:w-auto lg:text-[24px] lg:leading-[36px] lg:whitespace-nowrap py-7 lg:py-0 pl-1">¿A qué lugar quiere viajar?</b>{% else %}<b class="search-title-flight">Busque sus vuelos</b>{% endif %}
  40.                     {% endif %}
  41.                 {% else %}
  42.                 {#<b class="">Busque sus tiquetes</b>{% if app.session.has('operatorId') != 1 %}<b class="hide-portable"> baratos</b>{% endif %}#}
  43.                 {% if app.session.has('operatorId') != 1 %}<b class="search-title-flight block text-white font-bold
  44.                                     text-[20px] leading-[28px]
  45.                                     whitespace-normal w-[328px]
  46.                                     lg:w-auto lg:text-[24px] lg:leading-[36px] lg:whitespace-nowrap py-7 lg:py-0 pl-1">¿A qué lugar quiere viajar?</b>{% else %}<b class="search-title-flight">Busque sus tiquetes</b>{% endif %}
  47.                 {% endif %}
  48.             {% endif %}
  49.             {% if articulo is defined and articulo.url is defined%}
  50.                 <b class="">Vuelos Baratos</b><b class="hide-portable">
  51.                     {% set info = articulo.url %}
  52.                     {% set info = info|replace({'-': ' '}) %}
  53.                     {% set contentInfo = json_decode(articulo.description, true) %}
  54.                     {% if contentInfo['type']=="aerolineas"%}
  55.                         con {{info|title}}
  56.                     {% endif %}
  57.                     {% if contentInfo['type']=="destinos" %}
  58.                         a {{info|title}}
  59.                     {% endif %}
  60.                 </b>
  61.             {% endif %}
  62.             {% if articulo is defined and articulo.url is not defined and typeArticle is defined%}
  63.                 <span class="">
  64.                     {% set info = typeArticle %}
  65.                     {% set info = info|replace({'-': ' '}) %}
  66.                     {% if info=="colombia"%}
  67.                         Tiquetes
  68.                     {% else %}
  69.                         Vuelos
  70.                     {% endif %}
  71.                     <span class="hide-portable">Baratos </span>
  72.                     a {{info|replace({'oceania': 'oceanía', 'america': "américa",'africa': "áfrica"})|capitalize}}</span>
  73.                 {% endif %}
  74.         </h1>
  75.         {% if validateExplore is defined and validateExplore == true %}
  76.             <div class="search__btn-group btn-group explore-btn hidden-all" role="group" aria-label="Select flight type">
  77.                 <button type="button" id="explore-mobile" class="btn btn--inactive tooltips" data-date="1" data-type="explore-mobile" title="Explorar">
  78.                     <span class="tooltips-content hidden-all show-availengine">Presupuesto</span>
  79.                     <i class="icon icon_banknote hidden-palm show-availengine"></i>
  80.                     <span class="hide-availengine">
  81.                     </span>
  82.                     <div style="display:none">
  83.                         <input type="checkbox" name="applyBudget" id="applyBudget">
  84.                     </div>
  85.                 </button>
  86.             </div>
  87.         {% endif %}
  88.     </div>
  89.     <div class="search__light--box-opaque-palm mx-2.5 lg:mx-0 rounded-[16px] shadow-[0_1px_14px_1px_rgba(0,0,0,0.10)] md:shadow-none">
  90.         <div class="clearfix  mb-lg-0">
  91.             <div style="float:left;" class="search__btn-group btn-group" role="group" aria-label="Select flight type">
  92.                 <button type="button" id="vuelta" class="btn tooltips " data-date="1" data-type="roundtrip" title="Ida y Vuelta">
  93.                     <span class="tooltips-content hidden-all show-availengine font-normal">Ida y Vuelta</span>
  94.                     <i class="material-symbols-rounded flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_unchecked</i>
  95.                     <span class="hide-availengine font-[Roboto]">
  96.                         Ida y Vuelta
  97.                     </span>
  98.                 </button>
  99.                 <button type="button" id="ida" class="btn btn--inactive tooltips " data-date="1" data-type="oneway" title="Solo Ida">
  100.                     <span class="tooltips-content hidden-all show-availengine font-normal">Solo Ida</span>
  101.                     <i class="material-symbols-rounded flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_checked</i>
  102.                     <span class="hide-availengine font-[Roboto]">
  103.                         Solo Ida
  104.                     </span>
  105.                 </button>
  106.                 <button type="button" id="multidest" class="btn btn--inactive tooltips " title="Multidestino">
  107.                     <span class="tooltips-content hidden-all show-availengine font-normal">Multidestino</span>
  108.                     <i class="material-symbols-rounded flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_unchecked</i>
  109.                     <span class="hide-availengine font-[Roboto]">
  110.                         Multidestino
  111.                     </span>
  112.                 </button>
  113.                 {% if validateExplore is defined and validateExplore == true %}
  114.                 <button style="visibility:hidden;" type="button" id="explore" class="btn btn-explore btn--inactive tooltips hide-portable" data-date="1" data-type="explore" title="Explorar">
  115.                     <span class="tooltips-content show-availengine">¿Quiere saber a donde viajar con su presupuesto?</span>
  116.                     <i class="icon icon_banknote hidden-palm show-availengine"></i>
  117.                     <span class="hide-availengine">
  118.                         Buscar por presupuesto
  119.                     </span>
  120.                     <div style="display:none">
  121.                         <input type="checkbox" name="applyBudget" id="applyBudget">
  122.                     </div>
  123.                 </button>
  124.                 {% endif %}
  125.             </div>
  126.         </div>
  127.         {# END .search-header #}
  128.         {# START .search-body #}
  129.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_body.html.twig') %}
  130.         {# END .search-body #}
  131.         {# START .search-show #}
  132.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_show.html.twig') %}
  133.         {# END .search-show #}
  134.         {# START .search-footer #}
  135.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_options.html.twig') %}
  136.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_footer.html.twig') %}
  137.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_notificationModal.html.twig') %}
  138.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_cencosudLatamTrips.html.twig') %}
  139.         {# END .search-footer #}
  140.         {# SUBMIT #}
  141.         <div class="clearfix">
  142.             <span id="js-responsive-submit-palm"></span>
  143.             <div class="flex-row form-group js-responsive-submit search-flight__col-footer-search">
  144.                 <input type="button" value="travel Buscar en Vuelos" style="font-size:1.2rem;letter-spacing: 0.2rem;" class="hide material-symbols-rounded search__footer__submit btn btn--submit btn--full {% block package_submit_btn_2 %}js-searchButton{% endblock %}">
  145.                 <a class="btn btn--submit btn--full {% block package_submit_btn_3 %}js-searchButton{% endblock %}">
  146.                     Buscar en vuelos
  147.                 </a>
  148.             </div>
  149.         </div>
  150.     </div>
  151.     <script type="module" src='{{ script('FlightBundle//search_flight_swap_index.js') }}'></script>
  152.     <script src="https://q.bstatic.com/static/affiliate_base/js/search_extension.js" integrity="sha384-SKVrvRv16JN55Tqpe0zKniEUmA3VK5mLvUUiLIoYMy6P21mse6WxTbIQRRjNx2Er" crossorigin="anonymous" async defer></script>
  153. </form>
  154. {# <div class="wrapper flex-row  hide-palm">
  155.         <div class="col-grid text-center js-scroll-down">
  156.             <h5 href="#" class="type-white sp-stack--small" style="text-shadow: 1px 1px 2px black;">Descubra promociones</h5>
  157.             <span class="material-symbols-outlined type-white sp-stack--big">expand_more</span>
  158.         </div>
  159.     </div> #}