<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>{ifset #title}{include title|striptags} | {/ifset}{$projectSetting->name}</title>

		<!-- start: Mobile Specific -->
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- end: Mobile Specific -->

		<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
			<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->

		<!-- start: Favicon -->
		<link rel="shortcut icon" href="{$basePath}/img/favicon.ico">
		<!-- end: Favicon -->

		{control css}
		{control cssPrint}
		{control js}
	</head>

	<body>
		<script> document.body.className += ' js' </script>

		<div class="navbar no-print">
			<div class="navbar-inner">
				<div class="container-fluid">
					<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</a>

					<a class="brand" n:href=":Backend:Order:list">
						<img alt="Optimus Dashboard" src="{$basePath}/img/logo20.png" /><span>&nbsp;{$projectSetting->name}</span>
					</a>

					<div class="btn-group pull-right">
	 					<a n:href=":Backend:Help:Help:default" class="btn">
	 						<i class="icon-question-sign"></i><span class="hidden-phone">&nbsp;Nápověda</span>
	 					</a>
	 					<a n:href=":Backend:Setting:user" class="btn" n:if="$user->isInRole('administrator') || $user->isInRole('manager')">
	 						<i class="icon-wrench"></i><span class="hidden-phone">&nbsp;Nastavení</span>
	 					</a>

						<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
							<i class="icon-user"></i><span class="hidden-phone">&nbsp;&nbsp;{$user->identity->name|firstUpper}&nbsp;&nbsp;</span>
							<span class="caret"></span>
						</a>
						<ul class="dropdown-menu">
							<li><a n:href=":Frontend:Auth:logout">Odhlásit se</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>

		<div id="under-header"></div>

		<div class="container-fluid">
			<div class="row-fluid no-print">
				<div class="container-fluid">
					<ul class="nav top-menu">
						<li n:class="$presenter->isLinkCurrent(':Backend:Order:*') ? active">
							<a n:href=":Backend:Order:list" class="btn"><i class="icon-th-list"></i><span>&nbsp;Objednávky</span></a>
						</li>
						<li n:class="$presenter->isLinkCurrent(':Backend:Expedition:*') ? active">
							<a n:href=":Backend:Expedition:list" class="btn"><i class="icon-th-list"></i><span>&nbsp;Kuchyně a expedice</span></a>
						</li>
						<li n:class="$presenter->isLinkCurrent(':Backend:Driver:*') ? active">
							<a n:href=":Backend:Driver:list" class="btn"><i class="icon-th-list"></i><span>&nbsp;Trasy</span></a>
						</li>
						<li n:class="$presenter->isLinkCurrent(':Backend:Customer:*') ? active">
							<a n:href=":Backend:Customer:list" class="btn"><i class="icon-group"></i><span>&nbsp;Zákazníci</span></a>
						</li>
						<li n:class="$presenter->isLinkCurrent(':Backend:Report:*') ? active" n:if="$user->isInRole('administrator') || $user->isInRole('manager')">
							<a n:href=":Backend:Report:order" class="btn"><i class="icon-list-alt"></i><span>&nbsp;Reporty</span></a>
						</li>
						<li n:class="$presenter->isLinkCurrent(':Backend:Stock:*') ? active">
							<a n:href=":Backend:Stock:list" class="btn"><i class="icon-th-list"></i><span>&nbsp;Sklad</span></a>
						</li>
					</ul>
				</div>
			</div>

			<div class="row-fluid">
				<noscript>
					<div class="alert alert-block span10">
						<h4 class="alert-heading">Upozornění</h4>
						<p>Musíte mít povolený <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> pro správné fungování této stránky.</p>
					</div>
				</noscript>

				<div id="content">
					{snippet content}
						{include content}
					{/snippet}
				</div>
			</div>

			<div class="clearfix no-print">
				<hr>
			</div>

			<footer class="no-print">
				<div class="row-fluid">
					<p class="span4 footer1">
						<i class="icon-question-sign"></i>&nbsp;<a n:href=":Backend:Help:Help:default">Nápověda</a>
					</p>

					<p class="span4 footer2"></p>

					<p class="span4 footer3">
						<strong>Podpora:</strong>&nbsp;<a href="mailto:podpora@workoholix.cz">podpora@workoholix.cz</a>
					</p>
				</div>
			</footer>
		</div>
	</body>
</html>
