src/Aviatur/TwigBundle/Resources/views/aval/Flux/Search/Flight/flightSearch_index.html.twig line 1

Open in your IDE?
  1. {% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_index.html.twig') %}
  2. {% block search_content %}
  3.     <div class="wrapper">
  4.         <div class="">
  5.             {% if app.session.has('notEnableFlightSearch') == 0 %}
  6.                 {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine.html.twig') %}
  7.             {% endif %}
  8.         </div>
  9.     </div>
  10. {% endblock %}
  11. {% block promo_content %}
  12.     {% if homePromos is defined %}
  13.         {% if app.session.has('operatorId') != 1  %}
  14.             <div class="wrapper">
  15.                 {{ parent() }}
  16.                 {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromo.html.twig') %}
  17.             </div>
  18.         {% endif %}
  19.         {% if app.user != "" and (is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_' ~ app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_' ~ app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
  20.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/mainSearch_editModal.html.twig') %}
  21.         {% endif %}
  22.     {% endif %}
  23.     {% if app.session.has('operatorId') != 1 and app.session.has('whitemark') != 1%}
  24.         <div class="wrapper">
  25.             {{ parent() }}
  26.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_promo.html.twig') %}
  27.         </div>
  28.     {% endif %}
  29. {% endblock %}
  30. {% block javascripts_bottom %}
  31.     <script src="{{ script('AgencyBundle//tuplusFlightBundle.js' ) }}"></script>
  32.     <script>
  33.         jQuery(document).ready(function () {
  34.             utag.view({
  35.                 "tealium_event": "SCREEN_VIEW",
  36.                 "pagePath": location.pathname
  37.             });
  38.         });
  39.     </script>
  40.     <script type="text/javascript">
  41.         var dateEndCencosud = '2018-06-30';
  42.         var originIATA = ['BOG', 'CLO', 'SMR', 'BGA', 'BAQ', 'CTG', 'CUC', 'LET', 'MDE', 'MTR', 'PEI', 'ADZ', 'VUP', 'EYP'];
  43.         var destinationIATA = ['ANF', 'CJC', 'COR', 'PMC', 'SCL', 'AQP', 'CUZ', 'JUL', 'LIM', 'BUE', 'FTE', 'IGR', 'ANF', 'RIO', 'SAO', 'IGU', 'CWB', 'POA', 'SYD', 'MEL', 'BNE', 'AKL', 'LPB', 'ASU', 'MVD', 'VVI', 'USH', 'FOR', 'REC', 'BSB', 'SSA', 'IGR', 'IQQ', 'PUQ', 'MAO', 'RGL', 'PPT', 'FLN', 'UIO', 'GYE', 'LSC', 'TUC', 'CCP', 'PCL', 'ZCO', 'ARI', 'AUA', 'CUN', 'MIA'].concat(originIATA);
  44.     </script>
  45.     {% if parameters['aviatur_xtreme_search_enabled'] is defined and parameters['aviatur_xtreme_search_enabled'] == 1 %}
  46.         <script type="text/javascript">
  47.             var xtremeSearchUrl = '{{ parameters['aviatur_xtreme_search_url'] }}';
  48.         </script>
  49.     {% endif %}
  50.     {% if app.session.has('operatorId') == 1 and app.session.has('frontCencosud') == 1 %}
  51.         <script type="text/javascript">
  52.             var applyCencosudFront = 1;
  53.         </script>
  54.     {% endif %}
  55.     {{ parent() }}
  56. {% endblock javascripts_bottom %}