12589 update proflie base template

This commit is contained in:
Arthur 2023-06-26 10:26:58 -07:00
parent 12cd1af564
commit 1f08dc6c55
5 changed files with 4 additions and 23 deletions

View File

@ -1,4 +1,4 @@
{% extends 'users/base.html' %}
{% extends 'users/base_profile.html' %}
{% load helpers %}
{% load render_table from django_tables2 %}

View File

@ -5,25 +5,6 @@
{% load plugins %}
{% block tabs %}
<ul class="nav nav-tabs px-3">
<li role="presentation" class="nav-item">
<a class="nav-link{% if active_tab == 'profile' %} active{% endif %}" href="{% url 'users:profile' %}">Profile</a>
</li>
<li role="presentation" class="nav-item">
<a class="nav-link{% if active_tab == 'preferences' %} active{% endif %}" href="{% url 'users:preferences' %}">Preferences</a>
</li>
{% if not request.user.ldap_username %}
<li role="presentation" class="nav-item">
<a class="nav-link{% if active_tab == 'password' %} active{% endif %}" href="{% url 'users:change_password' %}">Password</a>
</li>
{% endif %}
<li role="presentation" class="nav-item">
<a class="nav-link{% if active_tab == 'api-tokens' %} active{% endif %}" href="{% url 'users:token_list' %}">API Tokens</a>
</li>
</ul>
{% endblock %}
{% block content-wrapper %}
<div class="tab-content">
{% block content %}{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'users/base.html' %}
{% extends 'users/base_profile.html' %}
{% load form_helpers %}
{% block title %}Change Password{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'users/base.html' %}
{% extends 'users/base_profile.html' %}
{% load helpers %}
{% load form_helpers %}

View File

@ -1,4 +1,4 @@
{% extends 'users/base.html' %}
{% extends 'users/base_profile.html' %}
{% load helpers %}
{% load render_table from django_tables2 %}