templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  3. <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  4. <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
  5. <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  6. <head>
  7.     <meta charset="{% block PageCharset %}utf-8{% endblock %}">
  8.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9.     <title>{% block PageTitle %}Air Charter Service Online Booking System{% endblock %}</title>
  10.     <meta name="description" content="{% block PageDescription %}Customer Sales Application{% endblock %}">
  11.     <meta name="viewport" content="width=device-width">
  12.     
  13.     {% block Stylesheets %}
  14.         <link href="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/css/reset.css') }}{{ ''|version }}" type="text/css" rel="stylesheet" />
  15.         <link href="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/css/smoothness/jquery-ui-1.10.0.custom.min.css') }}{{ ''|version }}" type="text/css" rel="stylesheet" />
  16.         <link href="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/css/styles.css') }}{{ ''|version }}" type="text/css" rel="stylesheet" />
  17.         <link href="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/css/booking.css') }}{{ ''|version }}" type="text/css" rel="stylesheet" />
  18.     {% endblock %}
  19. </head>
  20. <body>
  21.     <div class="site_wrapper">
  22.         <div class="main">
  23.             <header id="PageHeader" class="menu_header">
  24.                 <div id="flag_holder">
  25.                 </div>
  26.                 <!--Change the banner according to the user office id or booking office id (added by vazquel on 2014-02-18)-->
  27.                 {% set banner = 'uk_passenger.jpg' %}
  28.                 {% set bannerAlt = 'Air Charter Service - Specialists in providing all types of aircraft for your private air charter requirements' %}
  29.                 {% if app.user %}
  30.                     {% set banner = app.user.office.sitelogo  %}
  31.                     {% set bannerAlt = app.user.office.sitelogoalt %}
  32.                 {% elseif payment is defined %}
  33.                     {% set banner = payment.booking.bookingoffice.sitelogo %}
  34.                     {% set bannerAlt = payment.booking.bookingoffice.sitelogoalt %}
  35.                 {% elseif booking is defined %}
  36.                     {% set banner = booking.bookingoffice.sitelogo %}
  37.                     {% set bannerAlt = booking.bookingoffice.sitelogoalt %}
  38.                 {# elseif office is defined and office.sitelogo is defined #}
  39.                     {# set banner = office.sitelogo #}
  40.                     {# set bannerAlt = office.sitelogoalt #}
  41.                 {% endif %}
  42.                 <img src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/images/headers/'~banner)}}" alt="{{ bannerAlt }}" />
  43.                 <!-- ends change banner -->
  44.                 <ul id="nav">
  45.                 {% if app.user %} 
  46.                     <li><a href="{{ path('logout') }}" class="logout">logout</a></li>
  47.                     {% if is_granted('ROLE_ADMIN') %} 
  48.                         <li><a href="{{ path('admin') }}" class="button">Users</a></li> 
  49.                         <li><a href="{{ path('office') }}" class="button">Offices</a></li>                         
  50.                     {% endif %}
  51.                     {% if is_granted('ROLE_SALES') %} 
  52.                         <li><a href="{{ path('customer') }}" class="button">Customers</a></li> 
  53.                         <li><a href="{{ path('sales') }}" class="button">Bookings</a></li> 
  54.                     {% endif %}
  55.                 {% endif %}
  56.                 {% block Header %}
  57.                 {% endblock %}
  58.                 </ul>
  59.             </header>
  60.         
  61.             <div id="PageContent" class="content">
  62.                 {% block PageHeader %}
  63.                 {% endblock %}
  64.                 {% block PageContent %}
  65.                     Content stuff
  66.                 {% endblock %}
  67.             </div>
  68.         
  69.             <footer id="PageFooter">
  70.                 {% block PageFooter %}
  71.                     Footer
  72.                 {% endblock %}
  73.             </footer>    
  74.         </div>
  75.     </div>
  76.     <div id="msgs" class="formDialog"></div>
  77.     <div id="user" class="formDialog" style="display:none"></div>
  78.     <div id="ajax-overlay"></div><div id="ajax-indicator"></div>
  79.     {% block Scripts %}
  80.         <script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/js/jquery.js') }}{{ ''|version }}" type="text/javascript"></script>
  81.         <script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/js/jquery-ui-1.10.0.custom.min.js') }}{{ ''|version }}" type="text/javascript"></script>    
  82.         <script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/js/common.js') }}{{ ''|version }}" type="text/javascript"></script>
  83.         <script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/js/global.jquery.onpageload.js') }}" type="text/javascript"></script>
  84.     {% endblock %}
  85. </body>
  86. </html>