mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Apply BootstrapMixin to ComponentForm
This commit is contained in:
parent
ed2231e34b
commit
98a830a6a0
@ -23,7 +23,7 @@ __all__ = (
|
|||||||
# Device components
|
# Device components
|
||||||
#
|
#
|
||||||
|
|
||||||
class DeviceBulkAddComponentForm(BootstrapMixin, CustomFieldsMixin, ComponentForm):
|
class DeviceBulkAddComponentForm(CustomFieldsMixin, ComponentForm):
|
||||||
pk = forms.ModelMultipleChoiceField(
|
pk = forms.ModelMultipleChoiceField(
|
||||||
queryset=Device.objects.all(),
|
queryset=Device.objects.all(),
|
||||||
widget=forms.MultipleHiddenInput()
|
widget=forms.MultipleHiddenInput()
|
||||||
|
@ -35,7 +35,7 @@ __all__ = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class ComponentForm(forms.Form):
|
class ComponentForm(BootstrapMixin, forms.Form):
|
||||||
"""
|
"""
|
||||||
Subclass this form when facilitating the creation of one or more device component or component templates based on
|
Subclass this form when facilitating the creation of one or more device component or component templates based on
|
||||||
a name pattern.
|
a name pattern.
|
||||||
@ -142,7 +142,7 @@ class VirtualChassisCreateForm(CustomFieldModelForm):
|
|||||||
# Component templates
|
# Component templates
|
||||||
#
|
#
|
||||||
|
|
||||||
class ComponentTemplateCreateForm(BootstrapMixin, ComponentForm):
|
class ComponentTemplateCreateForm(ComponentForm):
|
||||||
"""
|
"""
|
||||||
Base form for the creation of device component templates (subclassed from ComponentTemplateModel).
|
Base form for the creation of device component templates (subclassed from ComponentTemplateModel).
|
||||||
"""
|
"""
|
||||||
@ -335,7 +335,7 @@ class DeviceBayTemplateCreateForm(ComponentTemplateCreateForm):
|
|||||||
# Device components
|
# Device components
|
||||||
#
|
#
|
||||||
|
|
||||||
class ComponentCreateForm(BootstrapMixin, CustomFieldsMixin, ComponentForm):
|
class ComponentCreateForm(CustomFieldsMixin, ComponentForm):
|
||||||
"""
|
"""
|
||||||
Base form for the creation of device components (models subclassed from ComponentModel).
|
Base form for the creation of device components (models subclassed from ComponentModel).
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user