|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{request.locale_name}}">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
|
|
|
<meta name="description" content="ordr">
|
|
|
|
<meta name="author" content="IMTEk / CPI / Holger Frey">
|
|
|
|
<link rel="shortcut icon" href="{{request.static_url('ordr:static/pyramid-16x16.png')}}">
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Ordr</title>
|
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
|
|
|
|
|
|
|
|
<!-- Custom styles for this scaffold -->
|
|
|
|
<link href="{{request.static_url('ordr:static/style.css')}}" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-dark bg-dark navbar-expand-sm">
|
|
|
|
<a class="navbar-brand text-primary" href="/"><strong>ordr</strong></a>
|
|
|
|
{% if not request.user %}
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item {% if context.nav_active=='welcome' and request.view_name=='login' %}active{% endif %}">
|
|
|
|
<a href="/" class="nav-link">Welcome</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {% if context.nav_active=='welcome' and request.view_name=='faq' %}active{% endif %}">
|
|
|
|
<a href="/faq" class="nav-link">FAQs</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {% if context.nav_active=='registration' %}active{% endif %}">
|
|
|
|
<a href="/register" class="nav-link">Register</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item {% if context.nav_active=='orders' %}active{% endif %}">
|
|
|
|
<a href="/orders" class="nav-link">Orders</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {% if context.nav_active=='welcome' and request.view_name=='faq' %}active{% endif %}">
|
|
|
|
<a href="/faq" class="nav-link">FAQs</a>
|
|
|
|
</li>
|
|
|
|
{% if 'role:admin' in request.user.principals %}
|
|
|
|
<li class="nav-item {% if context.nav_active=='admin' %}active{% endif %}">
|
|
|
|
<a href="/admin" class="nav-link">Admin</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="userDrowpdown" role="button" data-toggle="dropdown">
|
|
|
|
{{ request.user }}
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="userDropdown">
|
|
|
|
<a class="dropdown-item" href="/logout">Logout</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item" href="/account">Settings</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
{% block content %}
|
|
|
|
<p>No content</p>
|
|
|
|
{% endblock content %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Bootstrap core JavaScript
|
|
|
|
================================================== -->
|
|
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
|
|
<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>
|