2020-02-19 20:03:39 +00:00
|
|
|
{% extends "base/skeleton_pf4.html" %}
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
{% load static %}
|
|
|
|
{% load i18n %}
|
2020-02-19 20:03:39 +00:00
|
|
|
|
2018-11-16 08:10:35 +00:00
|
|
|
{% load is_active %}
|
2020-02-19 20:03:39 +00:00
|
|
|
{% load utils %}
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
{% block body %}
|
2020-02-19 20:03:39 +00:00
|
|
|
{% include 'partials/messages.html' %}
|
|
|
|
<div class="pf-c-page" id="page-default-nav-example">
|
|
|
|
<a class="pf-c-skip-to-content pf-c-button pf-m-primary" href="#main-content">{% trans 'Skip to content' %}</a>
|
|
|
|
<header role="banner" class="pf-c-page__header">
|
|
|
|
<div class="pf-c-page__header-brand">
|
|
|
|
<div class="pf-c-page__header-brand-toggle">
|
|
|
|
<button class="pf-c-button pf-m-plain" type="button" id="page-default-nav-example-nav-toggle"
|
|
|
|
aria-label="Global navigation" aria-expanded="true"
|
|
|
|
aria-controls="page-default-nav-example-primary-nav">
|
|
|
|
<i class="fas fa-bars" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<a class="pf-c-page__header-brand-link">
|
|
|
|
<img class="pf-c-brand" src="{% static 'passbook/logo.png' %}" alt="" />
|
|
|
|
<img class="pf-c-brand" src="{% static 'passbook/brand.svg' %}" alt="passbook" />
|
2019-10-10 08:02:48 +00:00
|
|
|
</a>
|
2020-02-19 20:03:39 +00:00
|
|
|
</div>
|
|
|
|
<div class="pf-c-page__header-tools">
|
|
|
|
<div class="pf-c-page__header-tools-group pf-m-icons">
|
|
|
|
<a href="{% url 'passbook_core:auth-logout' %}" class="pf-c-button pf-m-plain" type="button">
|
|
|
|
<i class="fas fa-sign-out-alt" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pf-c-page__header-tools-group">
|
|
|
|
<a href="{% url 'passbook_core:user-settings' %}" class="pf-c-button">
|
2019-10-10 08:02:48 +00:00
|
|
|
{{ user.username }}
|
2020-02-19 20:03:39 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<img class="pf-c-avatar" src="{% gravatar user.email %}" alt="">
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div class="pf-c-page__sidebar pf-m-dark">
|
|
|
|
<div class="pf-c-page__sidebar-body">
|
|
|
|
<nav class="pf-c-nav pf-m-dark" id="page-default-nav-example-primary-nav" aria-label="Global">
|
|
|
|
<ul class="pf-c-nav__list">
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_core:overview' %}" class="pf-c-nav__link {% is_active_url 'passbook_core:overview' %}">
|
|
|
|
{% trans 'Overview' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% if user.is_superuser %}
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:overview' %}" class="pf-c-nav__link {% is_active_url 'passbook_admin:overview' %}">
|
|
|
|
{% trans 'System Status' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:applications' %}" class="pf-c-nav__link {% is_active 'passbook_admin:applications' 'passbook_admin:application-create' 'passbook_admin:application-update' 'passbook_admin:application-delete' %}">
|
|
|
|
{% trans 'Applications' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:sources' %}" class="pf-c-nav__link {% is_active 'passbook_admin:sources' 'passbook_admin:source-create' 'passbook_admin:source-update' 'passbook_admin:source-delete' %}">
|
|
|
|
{% trans 'Sources' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:providers' %}" class="pf-c-nav__link {% is_active 'passbook_admin:providers' 'passbook_admin:provider-create' 'passbook_admin:provider-update' 'passbook_admin:provider-delete' %}">
|
|
|
|
{% trans 'Providers' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:property-mappings' %}" class="pf-c-nav__link {% is_active 'passbook_admin:property-mappings' 'passbook_admin:property-mapping-create' 'passbook_admin:property-mapping-update' 'passbook_admin:property-mapping-delete' %}">
|
|
|
|
{% trans 'Property Mappings' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:factors' %}" class="pf-c-nav__link {% is_active 'passbook_admin:factors' 'passbook_admin:factor-create' 'passbook_admin:factor-update' 'passbook_admin:factor-delete' %}">
|
|
|
|
{% trans 'Factors' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:policies' %}" class="pf-c-nav__link {% is_active 'passbook_admin:policies' 'passbook_admin:policy-create' 'passbook_admin:policy-update' 'passbook_admin:policy-delete' 'passbook_admin:policy-test' %}">
|
|
|
|
{% trans 'Policies' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:invitations' %}" class="pf-c-nav__link {% is_active 'passbook_admin:invitations' 'passbook_admin:invitation-create' 'passbook_admin:invitation-update' 'passbook_admin:invitation-delete' 'passbook_admin:invitation-test' %}">
|
|
|
|
{% trans 'Invitations' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:users' %}" class="pf-c-nav__link {% is_active 'passbook_admin:users' 'passbook_admin:user-update' 'passbook_admin:user-delete' %}">
|
|
|
|
{% trans 'Users' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:groups' %}" class="pf-c-nav__link {% is_active 'passbook_admin:groups' 'passbook_admin:group-update' 'passbook_admin:group-delete' %}">
|
|
|
|
{% trans 'Groups' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_admin:audit-log' %}" class="pf-c-nav__link {% is_active 'passbook_admin:audit-log' %}">
|
|
|
|
{% trans 'Audit Log' %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<main role="main" class="pf-c-page__main" tabindex="-1" id="main-content">
|
|
|
|
{% block content %}
|
|
|
|
<section class="pf-c-page__main-section pf-m-light">
|
|
|
|
<div class="pf-c-content">
|
|
|
|
<h1>Main title</h1>
|
|
|
|
<p>This is a demo of the Page component.</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="pf-c-page__main-section">
|
|
|
|
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|
|
|
|
</main>
|
2018-11-11 12:41:48 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
2019-03-14 20:18:13 +00:00
|
|
|
{{ block.super }}
|
2018-11-11 12:41:48 +00:00
|
|
|
<script>
|
2019-02-25 15:41:53 +00:00
|
|
|
$(document).ready(function () {
|
|
|
|
// initialize tooltips
|
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2019-02-25 15:41:53 +00:00
|
|
|
// Initialize the vertical navigation
|
|
|
|
$().setupVerticalNavigation(true);
|
|
|
|
});
|
2018-11-11 12:41:48 +00:00
|
|
|
</script>
|
2018-12-10 10:15:53 +00:00
|
|
|
{% endblock %}
|