2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Added automatic listing of custom CSS sheets (no more hardcoded), added error message when current selection is not valid and select default theme

This commit is contained in:
eeintech
2020-09-09 14:55:32 -05:00
parent 8198fad6d5
commit 28585644ea
7 changed files with 112 additions and 31 deletions

View File

@ -18,6 +18,15 @@
{% csrf_token %}
{% load crispy_forms_tags %}
{% crispy form %}
</form>
</form>
{% if invalid_color_theme %}
<div class="alert alert-danger alert-block" role="alert" style="display: inline-block;">
{% blocktrans %}
The CSS sheet "{{invalid_color_theme}}.css" for the currently selected color theme was not found.<br>
Please select another color theme :)
{% endblocktrans %}
</div>
{% endif %}
{% endblock %}