mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Template for displaying other settings
This commit is contained in:
parent
3e33326120
commit
02e71bd2ce
@ -61,6 +61,7 @@ settings_urls = [
|
||||
url(r'^user/?', SettingsView.as_view(template_name='InvenTree/settings/user.html'), name='settings-user'),
|
||||
url(r'^currency/?', SettingsView.as_view(template_name='InvenTree/settings/currency.html'), name='settings-currency'),
|
||||
url(r'^part/?', SettingsView.as_view(template_name='InvenTree/settings/part.html'), name='settings-part'),
|
||||
url(r'^other/?', SettingsView.as_view(template_name='InvenTree/settings/other.html'), name='settings-other'),
|
||||
|
||||
# Catch any other urls
|
||||
url(r'^.*$', SettingsView.as_view(template_name='InvenTree/settings/user.html'), name='settings'),
|
||||
|
11
InvenTree/templates/InvenTree/settings/other.html
Normal file
11
InvenTree/templates/InvenTree/settings/other.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "InvenTree/settings/settings.html" %}
|
||||
|
||||
{% block tabs %}
|
||||
{% include "InvenTree/settings/tabs.html" with tab='other' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block settings %}
|
||||
|
||||
<h4>InvenTree Settings</h4>
|
||||
|
||||
{% endblock %}
|
@ -8,4 +8,9 @@
|
||||
<li{% ifequal tab 'part' %} class='active'{% endifequal %}>
|
||||
<a href="{% url 'settings-part' %}"><span class='glyphicon glyphicon-briefcase'></span> Part</a>
|
||||
</li>
|
||||
{% if user.is_staff %}
|
||||
<li{% ifequal tab 'other' %} class='active'{% endifequal %}>
|
||||
<a href="{% url 'settings-other' %}"><span class='glyphicon glyphicon-cog'></span>Other</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
Loading…
Reference in New Issue
Block a user