mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-16 12:38:17 -06:00
Introduce user preference for toggling HTMX navigation
This commit is contained in:
parent
e735be7167
commit
7d86d0989d
@ -23,6 +23,14 @@ PREFERENCES = {
|
|||||||
),
|
),
|
||||||
default='light',
|
default='light',
|
||||||
),
|
),
|
||||||
|
'ui.htmx_navigation': UserPreference(
|
||||||
|
label=_('HTMX Navigation'),
|
||||||
|
choices=(
|
||||||
|
('true', _('Enabled')),
|
||||||
|
('false', _('Disabled')),
|
||||||
|
),
|
||||||
|
default=False
|
||||||
|
),
|
||||||
'locale.language': UserPreference(
|
'locale.language': UserPreference(
|
||||||
label=_('Language'),
|
label=_('Language'),
|
||||||
choices=(
|
choices=(
|
||||||
|
@ -58,6 +58,7 @@ class UserConfigForm(forms.ModelForm, metaclass=UserConfigFormMetaclass):
|
|||||||
'pagination.per_page',
|
'pagination.per_page',
|
||||||
'pagination.placement',
|
'pagination.placement',
|
||||||
'ui.colormode',
|
'ui.colormode',
|
||||||
|
'ui.htmx_navigation',
|
||||||
)),
|
)),
|
||||||
(_('Miscellaneous'), (
|
(_('Miscellaneous'), (
|
||||||
'data_format',
|
'data_format',
|
||||||
|
Loading…
Reference in New Issue
Block a user