2018-11-11 12:41:48 +00:00
|
|
|
{% extends "base/skeleton.html" %}
|
|
|
|
|
|
|
|
{% load static %}
|
|
|
|
{% load i18n %}
|
2018-11-16 08:10:35 +00:00
|
|
|
{% load is_active %}
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<nav class="navbar navbar-default navbar-pf" role="navigation">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1">
|
|
|
|
<span class="sr-only">{% trans 'Toggle navigation' %}</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="/">
|
2019-02-21 15:06:57 +00:00
|
|
|
<img src="{% static 'img/brand.svg' %}" alt="passbook" />
|
2018-11-11 12:41:48 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse navbar-collapse-1">
|
|
|
|
<ul class="nav navbar-nav navbar-utility">
|
|
|
|
<li class="dropdown">
|
|
|
|
<button class="btn btn-link nav-item-iconic" id="horizontalDropdownMenu1" data-toggle="dropdown" aria-haspopup="true"
|
|
|
|
aria-expanded="true">
|
|
|
|
<span title="Help" class="fa pficon-help dropdown-title"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="horizontalDropdownMenu1">
|
2018-12-19 09:17:17 +00:00
|
|
|
{% comment %} <li><a href="#0">Help</a></li> {% endcomment %}
|
2018-12-16 15:02:03 +00:00
|
|
|
<li><a data-toggle="modal" data-target="#about-modal" href="#0">{% trans 'About' %}</a></li>
|
2018-11-11 12:41:48 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<button class="btn btn-link dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<span class="pficon pficon-user"></span>
|
|
|
|
<span class="dropdown-title">
|
|
|
|
{{ user.username }} <b class="caret"></b>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
2018-12-10 15:58:35 +00:00
|
|
|
<a href="{% url 'passbook_core:user-settings' %}">{% trans 'User Settings' %}</a>
|
2018-11-11 12:41:48 +00:00
|
|
|
</li>
|
2019-02-23 19:56:41 +00:00
|
|
|
<li>
|
|
|
|
<a href="{% url 'passbook_core:user-change-password' %}">{% trans 'Change Password' %}</a>
|
|
|
|
</li>
|
2018-11-11 12:41:48 +00:00
|
|
|
<li class="divider"></li>
|
|
|
|
<li>
|
2018-11-23 08:44:30 +00:00
|
|
|
<a href="{% url 'passbook_core:auth-logout' %}">{% trans 'Logout' %}</a>
|
2018-11-11 12:41:48 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-11-22 12:12:59 +00:00
|
|
|
{% is_active_app 'passbook_admin' as is_admin %}
|
|
|
|
<ul class="nav navbar-nav navbar-primary {% if is_admin == 'active' %}persistent-secondary{% endif %}">
|
2018-12-11 14:30:15 +00:00
|
|
|
<li class="{% is_active_url 'passbook_core:overview' %}">
|
2018-11-16 08:10:35 +00:00
|
|
|
<a href="{% url 'passbook_core:overview' %}">{% trans 'Overview' %}</a>
|
|
|
|
</li>
|
2018-12-19 09:17:17 +00:00
|
|
|
{% if user.is_superuser %}
|
2018-11-16 08:10:35 +00:00
|
|
|
<li class="{% is_active_app 'passbook_admin' %}">
|
|
|
|
<a href="{% url 'passbook_admin:overview' %}">{% trans 'Administration' %}</a>
|
2018-11-11 12:41:48 +00:00
|
|
|
{% block nav_secondary %}
|
|
|
|
{% endblock %}
|
|
|
|
</li>
|
2018-12-19 09:17:17 +00:00
|
|
|
{% endif %}
|
2018-11-11 12:41:48 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="container-fluid container-cards-pf">
|
2019-02-21 15:06:57 +00:00
|
|
|
<div class="container">
|
|
|
|
{% include 'partials/messages.html' %}
|
|
|
|
</div>
|
2018-11-11 12:41:48 +00:00
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
// initialize tooltips
|
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
|
|
|
|
|
// Initialize the vertical navigation
|
|
|
|
$().setupVerticalNavigation(true);
|
|
|
|
});
|
|
|
|
</script>
|
2018-12-10 10:15:53 +00:00
|
|
|
{% endblock %}
|