2020-02-29 13:46:58 +00:00
|
|
|
{% extends "base/page.html" %}
|
2018-12-10 15:58:35 +00:00
|
|
|
|
|
|
|
{% load i18n %}
|
2020-05-15 08:54:31 +00:00
|
|
|
{% load passbook_is_active %}
|
2019-03-13 15:49:30 +00:00
|
|
|
{% load static %}
|
2019-02-25 12:20:07 +00:00
|
|
|
{% load passbook_user_settings %}
|
2018-12-10 15:58:35 +00:00
|
|
|
|
2020-02-29 13:46:58 +00:00
|
|
|
{% block page_content %}
|
|
|
|
<div class="pf-c-page__sidebar">
|
|
|
|
<div class="pf-c-page__sidebar-body">
|
|
|
|
<nav class="pf-c-nav" id="page-default-nav-example-primary-nav" aria-label="Global">
|
|
|
|
<section class="pf-c-nav__section">
|
|
|
|
<h2 class="pf-c-nav__section-title">{% trans 'General Settings' %}</h2>
|
|
|
|
<ul class="pf-c-nav__list">
|
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_core:user-settings' %}"
|
|
|
|
class="pf-c-nav__link {% is_active 'passbook_core:user-settings' %}">{% trans 'User Details' %}</a>
|
|
|
|
</li>
|
2020-10-18 13:38:28 +00:00
|
|
|
<li class="pf-c-nav__item">
|
|
|
|
<a href="{% url 'passbook_core:user-tokens' %}"
|
|
|
|
class="pf-c-nav__link {% is_active 'passbook_core:user-tokens' 'passbook_core:user-tokens-create' 'passbook_core:user-tokens-update' 'passbook_core:user-tokens-delete' %}">{% trans 'Tokens' %}</a>
|
|
|
|
</li>
|
2020-02-29 13:46:58 +00:00
|
|
|
</ul>
|
|
|
|
</section>
|
2020-05-08 17:46:39 +00:00
|
|
|
{% user_stages as user_stages_loc %}
|
|
|
|
{% if user_stages_loc %}
|
2020-02-29 13:46:58 +00:00
|
|
|
<section class="pf-c-nav__section">
|
2020-05-10 16:44:58 +00:00
|
|
|
<h2 class="pf-c-nav__section-title">{% trans 'Stages' %}</h2>
|
2020-02-29 13:46:58 +00:00
|
|
|
<ul class="pf-c-nav__list">
|
2020-05-08 17:46:39 +00:00
|
|
|
{% for stage in user_stages_loc %}
|
2020-02-29 13:46:58 +00:00
|
|
|
<li class="pf-c-nav__item">
|
2020-06-30 19:26:43 +00:00
|
|
|
<a href="{{ stage.url }}" class="pf-c-nav__link {% if stage.url == request.get_full_path %} pf-m-current {% endif %}">
|
2020-05-08 17:46:39 +00:00
|
|
|
{{ stage.name }}
|
2020-02-29 13:46:58 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
{% user_sources as user_sources_loc %}
|
|
|
|
{% if user_sources_loc %}
|
|
|
|
<section class="pf-c-nav__section">
|
|
|
|
<h2 class="pf-c-nav__section-title">{% trans 'Sources' %}</h2>
|
|
|
|
<ul class="pf-c-nav__list">
|
|
|
|
{% for source in user_sources_loc %}
|
|
|
|
<li class="pf-c-nav__item">
|
2020-07-06 15:46:41 +00:00
|
|
|
<a href="{{ source.url }}"
|
2020-06-30 19:26:43 +00:00
|
|
|
class="pf-c-nav__link {% if source.url == request.get_full_path %} pf-m-current {% endif %}">
|
2020-02-29 13:46:58 +00:00
|
|
|
{{ source.name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<main role="main" class="pf-c-page__main" tabindex="-1" id="main-content">
|
2020-10-18 13:38:28 +00:00
|
|
|
{% block content %}
|
2020-02-29 13:46:58 +00:00
|
|
|
<section class="pf-c-page__main-section">
|
2020-06-30 19:23:37 +00:00
|
|
|
<div class="pf-u-display-flex pf-u-justify-content-center">
|
|
|
|
<div class="pf-u-w-75">
|
|
|
|
{% block page %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
2020-02-21 17:00:09 +00:00
|
|
|
</div>
|
2020-02-29 13:46:58 +00:00
|
|
|
</section>
|
2020-10-18 13:38:28 +00:00
|
|
|
{% endblock %}
|
2020-02-29 13:46:58 +00:00
|
|
|
</main>
|
2018-12-10 15:58:35 +00:00
|
|
|
{% endblock %}
|