1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#9166 - Add UI Visibility setting for custom fields

This commit is contained in:
kkthxbye
2022-05-24 10:12:32 +02:00
parent 64146b8cb1
commit 20eaa7d069
14 changed files with 84 additions and 13 deletions

View File

@@ -37,6 +37,13 @@ class CustomFieldBulkEditForm(BulkEditForm):
weight = forms.IntegerField(
required=False
)
ui_visibility = forms.ChoiceField(
label="UI visibility",
choices=add_blank_choice(CustomFieldVisibilityChoices),
required=False,
initial='',
widget=StaticSelect()
)
nullable_fields = ('group_name', 'description',)