2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Added Color Theme view in settings

This commit is contained in:
eeintech
2020-09-07 11:29:24 -05:00
parent f0713ce01d
commit 0548bee8ad
8 changed files with 875 additions and 5 deletions

View File

@ -8,6 +8,9 @@
<li{% ifequal tab 'part' %} class='active'{% endifequal %}>
<a href="{% url 'settings-part' %}"><span class='fas fa-shapes'></span> Part</a>
</li>
<li{% ifequal tab 'theme' %} class='active'{% endifequal %}>
<a href="{% url 'settings-theme' %}"><span class='fas fa-fill'></span> Theme</a>
</li>
{% if user.is_staff %}
<li{% ifequal tab 'other' %} class='active'{% endifequal %}>
<a href="{% url 'settings-other' %}"><span class='fas fa-cogs'></span> Other</a>

View File

@ -0,0 +1,27 @@
{% extends "InvenTree/settings/settings.html" %}
{% block tabs %}
{% include "InvenTree/settings/tabs.html" with tab='theme' %}
{% endblock %}
{% block settings %}
<div class='row'>
<div class='col-sm-6'>
<h4>Color Themes</h4>
</div>
</div>
<div class='row'>
<div class='col-sm-6'>
<div style='float: left;'>
<form action="{% url 'settings-theme' %}" method="post">
{% csrf_token %}
{{ form }}
<input class='btn btn-primary' type="submit" value='Apply Theme'>
</form>
</div>
</div>
</div>
{% endblock %}