2018-12-10 15:58:35 +00:00
|
|
|
{% extends "overview/base.html" %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
{% load 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
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="col-md-3 ">
|
|
|
|
<div class="nav-category">
|
2019-02-25 12:20:07 +00:00
|
|
|
<h2>{% trans 'User Settings'%}</h2>
|
2018-12-10 15:58:35 +00:00
|
|
|
<ul class="nav nav-pills nav-stacked">
|
2019-02-21 15:06:57 +00:00
|
|
|
<li class="{% is_active 'passbook_core:user-settings' %}">
|
|
|
|
<a href="{% url 'passbook_core:user-settings' %}">
|
2019-02-25 12:20:07 +00:00
|
|
|
<i class="fa pficon-edit"></i> {% trans 'Details' %}
|
2019-02-21 15:06:57 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2019-02-25 12:20:07 +00:00
|
|
|
{% user_factors as uf %}
|
2019-10-10 08:02:48 +00:00
|
|
|
{% if uf %}
|
|
|
|
<li class="nav-divider"></li>
|
|
|
|
{% endif %}
|
2019-10-09 10:47:14 +00:00
|
|
|
{% for user_settings in uf %}
|
2019-10-10 08:02:48 +00:00
|
|
|
<li class="{% is_active user_settings.view_name %}">
|
|
|
|
<a href="{% url user_settings.view_name %}">
|
|
|
|
<i class="{{ user_settings.icon }}"></i> {{ user_settings.name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
2019-02-25 12:20:07 +00:00
|
|
|
{% endfor %}
|
2019-03-13 15:49:30 +00:00
|
|
|
{% user_sources as us %}
|
2019-10-10 08:02:48 +00:00
|
|
|
{% if us %}
|
|
|
|
<li class="nav-divider"></li>
|
|
|
|
{% endif %}
|
2019-10-09 10:47:14 +00:00
|
|
|
{% for user_settings in us %}
|
2019-10-10 08:02:48 +00:00
|
|
|
<li class="{% if user_settings.view_name == request.get_full_path %} active {% endif %}">
|
|
|
|
<a href="{{ user_settings.view_name }}">
|
|
|
|
<i class="{{ user_settings.icon }}"></i> {{ user_settings.name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
2019-03-13 15:49:30 +00:00
|
|
|
{% endfor %}
|
2018-12-10 15:58:35 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
{% block page %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|