15597 add button_class choices to import form

This commit is contained in:
Arthur 2024-04-03 09:25:03 -07:00 committed by Jeremy Stretch
parent bb4930b62f
commit 83dad6f771
1 changed files with 6 additions and 0 deletions

View File

@ -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