2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

inline theme form

This commit is contained in:
Oliver
2021-07-27 07:56:24 +10:00
parent 3349e9ff6c
commit 0186d23563
2 changed files with 31 additions and 0 deletions

View File

@ -226,6 +226,18 @@ def get_color_theme_css(username):
return inventree_css_static_url
@register.simple_tag()
def get_available_themes(*args, **kwargs):
"""
Return the available theme choices
"""
print("available:")
print(ColorTheme.get_color_themes_choices())
return ColorTheme.get_color_themes_choices()
@register.filter
def keyvalue(dict, key):
"""