<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="{% block PageCharset %}utf-8{% endblock %}">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{% block PageTitle %}Air Charter Service Online Booking System{% endblock %}</title>
<meta name="description" content="{% block PageDescription %}Customer Sales Application{% endblock %}">
<meta name="viewport" content="width=device-width">
{% block Stylesheets %}
<link href="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/css/reset.css') }}{{ ''|version }}" type="text/css" rel="stylesheet" />
<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" />
<link href="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/css/styles.css') }}{{ ''|version }}" type="text/css" rel="stylesheet" />
<link href="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/css/booking.css') }}{{ ''|version }}" type="text/css" rel="stylesheet" />
{% endblock %}
</head>
<body>
<div class="site_wrapper">
<div class="main">
<header id="PageHeader" class="menu_header">
<div id="flag_holder">
</div>
<!--Change the banner according to the user office id or booking office id (added by vazquel on 2014-02-18)-->
{% set banner = 'uk_passenger.jpg' %}
{% set bannerAlt = 'Air Charter Service - Specialists in providing all types of aircraft for your private air charter requirements' %}
{% if app.user %}
{% set banner = app.user.office.sitelogo %}
{% set bannerAlt = app.user.office.sitelogoalt %}
{% elseif payment is defined %}
{% set banner = payment.booking.bookingoffice.sitelogo %}
{% set bannerAlt = payment.booking.bookingoffice.sitelogoalt %}
{% elseif booking is defined %}
{% set banner = booking.bookingoffice.sitelogo %}
{% set bannerAlt = booking.bookingoffice.sitelogoalt %}
{# elseif office is defined and office.sitelogo is defined #}
{# set banner = office.sitelogo #}
{# set bannerAlt = office.sitelogoalt #}
{% endif %}
<img src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/images/headers/'~banner)}}" alt="{{ bannerAlt }}" />
<!-- ends change banner -->
<ul id="nav">
{% if app.user %}
<li><a href="{{ path('logout') }}" class="logout">logout</a></li>
{% if is_granted('ROLE_ADMIN') %}
<li><a href="{{ path('admin') }}" class="button">Users</a></li>
<li><a href="{{ path('office') }}" class="button">Offices</a></li>
{% endif %}
{% if is_granted('ROLE_SALES') %}
<li><a href="{{ path('customer') }}" class="button">Customers</a></li>
<li><a href="{{ path('sales') }}" class="button">Bookings</a></li>
{% endif %}
{% endif %}
{% block Header %}
{% endblock %}
</ul>
</header>
<div id="PageContent" class="content">
{% block PageHeader %}
{% endblock %}
{% block PageContent %}
Content stuff
{% endblock %}
</div>
<footer id="PageFooter">
{% block PageFooter %}
Footer
{% endblock %}
</footer>
</div>
</div>
<div id="msgs" class="formDialog"></div>
<div id="user" class="formDialog" style="display:none"></div>
<div id="ajax-overlay"></div><div id="ajax-indicator"></div>
{% block Scripts %}
<script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/js/jquery.js') }}{{ ''|version }}" type="text/javascript"></script>
<script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/js/jquery-ui-1.10.0.custom.min.js') }}{{ ''|version }}" type="text/javascript"></script>
<script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/pwpcommon/js/common.js') }}{{ ''|version }}" type="text/javascript"></script>
<script src="{{ app.request.getSchemeAndHttpHost() ~ asset('ACS/web/acs/js/global.jquery.onpageload.js') }}" type="text/javascript"></script>
{% endblock %}
</body>
</html>