mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
15597 add button_class choices to import form
This commit is contained in:
@ -116,6 +116,12 @@ class CustomLinkImportForm(CSVModelForm):
|
|||||||
queryset=ContentType.objects.with_feature('custom_links'),
|
queryset=ContentType.objects.with_feature('custom_links'),
|
||||||
help_text=_("One or more assigned object types")
|
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:
|
class Meta:
|
||||||
model = CustomLink
|
model = CustomLink
|
||||||
|
Reference in New Issue
Block a user