feat: add personalized navigation and tenant filtering

This commit is contained in:
2026-07-28 16:40:50 +02:00
commit 54f6a3f6c9
27 changed files with 1142 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from django import forms
from .models import UtilitiesSettings
class UtilitiesSettingsForm(forms.ModelForm):
class Meta:
model = UtilitiesSettings
fields = ("tenant_filter_enabled",)
labels = {
"tenant_filter_enabled": "Globalen Mandantenfilter aktivieren",
}
help_texts = {
"tenant_filter_enabled": (
"Blendet das Mandanten-Dropdown ein und ergänzt unterstützte NetBox-Listen "
"automatisch um den gewählten Mandantenfilter."
),
}
widgets = {
"tenant_filter_enabled": forms.CheckboxInput(attrs={"class": "form-check-input"}),
}