2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-17 18:26:32 +00:00

Theme change works but applies to all user

This commit is contained in:
eeintech
2020-09-07 15:15:51 -05:00
parent 0548bee8ad
commit 2e5ec5d249
7 changed files with 65 additions and 17 deletions

View File

@@ -1,4 +1,6 @@
{% extends "InvenTree/settings/settings.html" %}
{% load i18n %}
{% load inventree_extras %}
{% block tabs %}
{% include "InvenTree/settings/tabs.html" with tab='theme' %}
@@ -16,9 +18,10 @@
<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'>
{% csrf_token %}
{% load crispy_forms_tags %}
{% crispy form %}
{# <button type='submit' class='btn btn-primary'>{% trans "Apply Theme" %}</button> #}
</form>
</div>
</div>

View File

@@ -1,5 +1,6 @@
{% load static %}
{% load i18n %}
{% load inventree_extras %}
<!DOCTYPE html>
<html lang="en">
@@ -38,7 +39,7 @@
<link rel="stylesheet" href="{% static 'css/select2.css' %}">
<link rel="stylesheet" href="{% static 'css/select2-bootstrap.css' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap-toggle.css' %}">
<link rel="stylesheet" href="{% static 'css/inventree.css' %}">
<link rel="stylesheet" href="{% get_theme_css %}">
{% block css %}
{% endblock %}