90 lines
3.0 KiB
HTML
90 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<head>
|
|
|
|
{% if title %}
|
|
<title>{{ title }}</title>
|
|
{% else %}
|
|
<title>Gerüchteküche</title>
|
|
{% endif %}
|
|
|
|
<!-- Required meta tags -->
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<link href="{{ url_for('static', filename='master.css') }}", type="text/css", rel="stylesheet">
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|
<script type="text/javascript"
|
|
src="/static/js/sijax/sijax.js"></script>
|
|
<script type="text/javascript">
|
|
{{ g.sijax.get_js()|safe }}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div class="topnav">
|
|
<a class="logo-nav first" href="{{ url_for('to_home') }}">
|
|
<img class="logo-nav background-logo" src="{{ url_for('static', filename='img/logo_selected.png')}}">
|
|
<img class="logo-nav main-logo" src="{{ url_for('static', filename='img/logo.png') }}">
|
|
</a>
|
|
{% if current_user.is_authenticated %}
|
|
<a class="last blue-button" href="{{ url_for('logout') }}">Logout</a>
|
|
<a class="last blue-button" href="{{ url_for('finanzen') }}">Übersicht</a>
|
|
{% else %}
|
|
<a class="last blue-button" href="{{ url_for('login') }}">Finanzer</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="container">
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="bottombar">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ category }}">
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if form %}
|
|
{% if form.username.errors %}
|
|
{% for error in form.username.errors %}
|
|
<div class="alert alert-error">
|
|
<span>{{ error }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if form.password %}
|
|
{% if form.password.errors %}
|
|
{% for error in form.password.errors %}
|
|
<div class="alert alert-error">
|
|
<span>{{ error }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
<div id="flash"></div>
|
|
{% block bottombar %}
|
|
|
|
{% endblock %}
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Optional JavaScript -->
|
|
<!-- jQuery first, then Popper.js, then Bootstrap JS
|
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
|
-->
|
|
</body>
|
|
</html>
|