mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Template for displaying other settings
This commit is contained in:
		@@ -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>
 | 
			
		||||
		Reference in New Issue
	
	Block a user