2015-03-17 20:57:38 +01:00
|
|
|
{% macro navigation() -%}
|
2016-04-17 09:59:34 +02:00
|
|
|
{% if current_user.email %}
|
2016-04-19 07:39:17 +02:00
|
|
|
<li><a href='{{ url_for('create_pit_stop_form') }}'>Create Pitstop</a></li>
|
|
|
|
<li><a href='{{ url_for('get_statistics') }}'>Statistics</a></li>
|
2016-04-21 08:11:57 +02:00
|
|
|
<li><a href='{{ url_for('get_account_page') }}'>Account</a></li>
|
2016-04-19 22:41:40 +02:00
|
|
|
{% if current_user.has_role('admin') %}
|
|
|
|
<li><a href='{{ url_for('get_admin_page') }}'>Admin</a></li>
|
|
|
|
{% endif %}
|
2016-04-17 09:59:34 +02:00
|
|
|
<li><a href='{{ url_for('security.logout') }}'>Logout</a></li>
|
2016-04-19 07:39:17 +02:00
|
|
|
{% else %}
|
|
|
|
<li><a href='{{ url_for('security.login') }}'>Login</a></li>
|
|
|
|
<li><a href='{{ url_for('security.register') }}'>Register</a></li>
|
2016-04-17 09:59:34 +02:00
|
|
|
{% endif %}
|
2015-03-17 20:57:38 +01:00
|
|
|
{%- endmacro %}
|
|
|
|
|
2016-04-18 21:43:01 +02:00
|
|
|
{% macro render_field_with_errors(field) %}
|
2016-04-17 15:06:54 +02:00
|
|
|
<div class="form-group">
|
2016-04-18 21:43:01 +02:00
|
|
|
<label class="col-sm-6 control-label">
|
2016-04-17 15:06:54 +02:00
|
|
|
{{ field.label }}
|
|
|
|
</label>
|
2016-04-18 21:43:01 +02:00
|
|
|
<div class="col-sm-2">
|
2016-04-17 15:06:54 +02:00
|
|
|
{{ field(**kwargs)|safe }}
|
|
|
|
{% if field.errors %}
|
2016-04-18 07:25:40 +02:00
|
|
|
<p class='error'>
|
2016-04-17 15:06:54 +02:00
|
|
|
{% for error in field.errors %}
|
2016-04-18 07:25:40 +02:00
|
|
|
{{ error }}
|
2016-04-17 15:06:54 +02:00
|
|
|
{% endfor %}
|
2016-04-18 07:25:40 +02:00
|
|
|
</p>
|
2016-04-17 15:06:54 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
|
2015-03-06 21:58:53 +01:00
|
|
|
<!doctype html>
|
|
|
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
|
|
|
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
|
|
|
|
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
|
|
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
2016-04-14 07:32:06 +02:00
|
|
|
<title>Rollerverbrauch 0.1</title>
|
2015-03-06 21:58:53 +01:00
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2015-03-22 10:54:33 +01:00
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-57.png') }}">
|
2015-03-22 13:31:03 +01:00
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-60.png') }}">
|
2015-03-22 10:54:33 +01:00
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-72.png') }}">
|
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-76.png') }}">
|
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-114.png') }}">
|
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-120.png') }}">
|
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-144.png') }}">
|
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-152.png') }}">
|
2015-03-22 13:31:03 +01:00
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon-180.png') }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="192x192" href="{{ url_for('static', filename='android-icon-192x192.png') }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='favicon-32x32.png') }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="96x96" href="{{ url_for('static', filename='favicon-96x96.png') }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', filename='favicon-16x16.png') }}">
|
2015-03-06 21:58:53 +01:00
|
|
|
|
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
|
|
|
|
|
|
|
<!-- Optional theme -->
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
|
|
|
|
|
2015-03-22 13:31:03 +01:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
2015-03-06 21:58:53 +01:00
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2015-03-16 22:06:59 +01:00
|
|
|
<a class="navbar-brand" href="{{ url_for('get_pit_stops') }}">Rollerverbrauch</a>
|
2015-03-06 21:58:53 +01:00
|
|
|
</div>
|
|
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2015-03-17 20:57:38 +01:00
|
|
|
{{ navigation() }}
|
2015-03-06 21:58:53 +01:00
|
|
|
</ul>
|
|
|
|
</div><!--/.nav-collapse -->
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="starter-template">
|
|
|
|
{% block body %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|