From 83dad6f7717f7de3e4dec778ebd4a6fb2f16c89c Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 3 Apr 2024 09:25:03 -0700 Subject: [PATCH] 15597 add button_class choices to import form --- netbox/extras/forms/bulk_import.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netbox/extras/forms/bulk_import.py b/netbox/extras/forms/bulk_import.py index 59ccc2bf9..2baf373c0 100644 --- a/netbox/extras/forms/bulk_import.py +++ b/netbox/extras/forms/bulk_import.py @@ -116,6 +116,12 @@ class CustomLinkImportForm(CSVModelForm): queryset=ContentType.objects.with_feature('custom_links'), help_text=_("One or more assigned object types") ) + button_class = CSVChoiceField( + label=_('button class'), + required=False, + choices=CustomLinkButtonClassChoices, + help_text=_('The class of the first link in a group will be used for the dropdown button') + ) class Meta: model = CustomLink