<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% block title %}Beehive{% endblock %}</title>
{% block stylesheets %}
<link href="{{ asset('css/960/reset.css') }}" type="text/css" rel="stylesheet" />
<link href="{{ asset('css/960/text.css') }}" type="text/css" rel="stylesheet" />
<link href="{{ asset('css/960/960.css') }}" type="text/css" rel="stylesheet" />
<link href="{{ asset('css/jquery/dark-hive/jquery-ui-1.8.17.custom.css') }}" type="text/css" rel="stylesheet" />
<link href="{{ asset('css/main.css?8') }}" type="text/css" rel="stylesheet" />
<link href="{{ asset('css/print.css') }}" type="text/css" rel="stylesheet" media="print" />
{% endblock %}
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
{% include 'matomo.html' %}
</head>
<body>
{% if app.environment == 'dev' %}
<img src="{{ asset('images/dev.png') }}" alt="bleeding edge" width="100" style="position: fixed; right: 0; z-index: 999;" />
{% endif %}
<div id="site">
<div id="header">
{% if app.user %}
<span>Hallo {{ app.user.name }}!</span>
<div id="navigation" class="ui-widget">
<div>Navigation</div>
<ul id="menu" class="ui-corner-all" style="display: none;">
{% set navigation = {
'Berichtigungen': {'PapyrillioBeehive_CorrectionList': {'title': 'Berichtigungen ansehen', 'parameters': {}},
'PapyrillioBeehive_CorrectionNew': {'title': 'Neue Berichtigung anlegen', 'parameters': {}},
'PapyrillioBeehive_Apiary': {'title': 'Bestand durchblättern', 'parameters': {}}},
'Editionen': {'PapyrillioBeehive_EditionList': {'title': 'Editionen ansehen', 'parameters': {}},
'PapyrillioBeehive_EditionNew': {'title': 'Edition anlegen', 'parameters': {}}},
'Berichte': {'PapyrillioBeehive_Report': {'title': 'Leiden Format', 'parameters': {}},
'PapyrillioBeehive_ReportOverview': {'title': 'Übersicht nach Editionen*', 'parameters': {}},
'PapyrillioBeehive_ReportPdf': {'title': 'PDF*', 'parameters': {}},
'PapyrillioBeehive_ReportPrint': {'title': 'Druckvorstufe', 'parameters': {}}},
'Index': {'PapyrillioBeehive_IndexEntryManageAssignments': {'title': 'Indexeinträge zuordnen', 'parameters': {}},
'PapyrillioBeehive_IndexEntryNew': {'title': 'Indexeinträge nach BL (im Frontend)', 'parameters': {'compilationId': 5}}},
'Benutzer': {'PapyrillioBeehive_UserList': {'title': 'Alle Benutzer anzeigen', 'parameters': {}},
'PapyrillioBeehive_UserNew': {'title': 'Neuen Benutzer anlegen', 'parameters': {}},
'PapyrillioBeehive_UserShow': {'title': 'Profil', 'parameters': { 'id': app.user.id }},
'PapyrillioBeehive_UserPassword': {'title': 'Passwort ändern', 'parameters': {}},
'PapyrillioBeehive_Logout': {'title': 'Abmelden', 'parameters': {}}}
} %}
{% for category, menu in navigation %}
<li>
{{ category }}
<ul>
{% for path, item in menu %}
{% if path == app.request.attributes.get('_route') %}
<li class="highlight">{{ item.title }}</li>
{% else %}
<li><a href="{{ path(path, item.parameters) }}">{{ item.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
{% elseif app.request.attributes.get('_route') %}
<a href="{{ path('PapyrillioBeehive_Login') }}">Login</a>
{% endif %}
</div>
<div id="content">
{% if app.session.flashbag.peekAll() %}
<div class="ui-widget">
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
{% for label, messages in app.flashes %}
{% for message in messages %}
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span> <strong>{{ label|trans }}:</strong> {{ message }}</p>
{% endfor %}
{% endfor %}
</div>
</div>
{% endif %}
{% block body %}{% endblock %}
</div>
<div id="footer">
<p>
{% if app.user %}
<a href="{{ path('PapyrillioBeehive_Logout') }}">Abmelden</a>
{% endif %}
<a href="{{ path('PapyrillioBeehive_Apiary') }}">Blättern</a>
<a href="{{ path('PapyrillioBeehive_About') }}">Info</a>
<a href="{{ path('PapyrillioBeehive_Contact') }}">Kontakt</a>
<a href="{{ path('PapyrillioBeehive_Help') }}">Hilfe</a>
<a href="https://www.uni-heidelberg.de/datenschutzerklaerung_web.html" target="_zde">Zentrale Datenschutzerklärung der Universität Heidelberg</a>
</p>
</div>
</div>
{% block javascripts %}
<script src="{{ asset('js/jquery/jquery-1.7.1.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('js/jquery/jquery-ui-1.8.17.custom.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('js/main.js') }}" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#navigation div').click(function(event){
$('#navigation ul#menu').toggle('slide');
event.stopPropagation();
});
$('body').click(function(){
if($('#navigation ul#menu').is(':visible')){
$('#navigation ul#menu').hide('slide');
}
});
});
</script>
{% endblock %}
</body>
</html>