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:
@ -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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user