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

Fix theme selector

Fixes #2298
This commit is contained in:
Matthias
2021-11-11 23:04:16 +01:00
parent 1ff9edf490
commit 5bb3a95699
2 changed files with 16 additions and 8 deletions

View File

@ -37,8 +37,9 @@
<div class='form-group input-group mb-3'>
<select id='theme' name='theme' class='select form-control'>
{% get_available_themes as themes %}
{% get_user_color_theme request.user.username as user_theme %}
{% for theme in themes %}
<option value='{{ theme.key }}'>{{ theme.name }}</option>
<option value='{{ theme.key }}'{% if theme.key == user_theme %} selected{% endif%}>{{ theme.name }}</option>
{% endfor %}
</select>
<div class='input-group-append'>