{% comment %}
# This file is part of k4ever, a point-of-sale system
#   Contact............  <k4ever@lists.someserver.de>
#   Website............  http://k4ever.someserver.de/
#   Bug tracker........  http://k4ever.someserver.de/report
#
# Licensed under GNU Affero General Public License v3 or later
{% endcomment %}

<!DOCTYPE html>
<html {% if user.is_authenticated %}class="loggedIn"{% endif %}>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		{% block head %}
		<link rel="stylesheet" media="screen" type="text/css"
			href="{{ MEDIA_URL }}css/style.css" />
		{% block extrastyle %}{% endblock %}
		<script type="text/javascript">
			var MEDIA_URL = "{{ MEDIA_URL }}";
		</script>
		<script type='text/javascript' src="{{ MEDIA_URL }}js/jquery-1.5.1.js"></script>
		<script type='text/javascript' src="{{ MEDIA_URL }}js/jquery-ui-1.8.10.custom.min.js"></script>
		<script type='text/javascript' src="{{ MEDIA_URL }}js/jquery.ui.autocomplete.html.js"></script>
		<script type='text/javascript' src="{{ MEDIA_URL }}js/jquery.gritter.min.js"></script>
		<script type='text/javascript' src="{{ MEDIA_URL }}js/k4ever.js"></script>
		{% block extrahead %}{% endblock %}
		{% endblock head %}
		<title>Freitagsrundenkasse{% block "title" %}{% endblock %}</title>
	</head>
	<body{%block bodyargs %}{%endblock%}>
		<div id="header">
			<div class="search">
				<div>
					{% if user.is_authenticated %}
						{% include "main/search-form.html" %}
					{% endif %}
				</div>
			</div>
			<div class="navigation">
				<h1>Kasse</h1>
				<nav>
					{% if user.is_authenticated %}
						{% include "main/navigation-login.html" %}
					{% else %}
						{% include "main/navigation.html" %}
					{% endif %}
				</nav>
				{% if user.is_authenticated %}
					<span class="balance">Kontostand: {{ user.get_profile.balance|floatformat:2 }} €</span>
				{% endif %}
			</div>
		</div>
		<div class="content">
			{% block "content" %}{% endblock %}
		</div>
		</body>
</html>
