mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Added TagFilterField to device components' filter forms
This commit is contained in:
parent
ca035a72bd
commit
2375d66f75
@ -2158,6 +2158,7 @@ class DeviceBulkAddInterfaceForm(DeviceBulkAddComponentForm):
|
|||||||
|
|
||||||
class ConsolePortFilterForm(DeviceComponentFilterForm):
|
class ConsolePortFilterForm(DeviceComponentFilterForm):
|
||||||
model = ConsolePort
|
model = ConsolePort
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class ConsolePortForm(BootstrapMixin, forms.ModelForm):
|
class ConsolePortForm(BootstrapMixin, forms.ModelForm):
|
||||||
@ -2215,6 +2216,7 @@ class ConsolePortCSVForm(forms.ModelForm):
|
|||||||
|
|
||||||
class ConsoleServerPortFilterForm(DeviceComponentFilterForm):
|
class ConsoleServerPortFilterForm(DeviceComponentFilterForm):
|
||||||
model = ConsoleServerPort
|
model = ConsoleServerPort
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class ConsoleServerPortForm(BootstrapMixin, forms.ModelForm):
|
class ConsoleServerPortForm(BootstrapMixin, forms.ModelForm):
|
||||||
@ -2307,6 +2309,7 @@ class ConsoleServerPortCSVForm(forms.ModelForm):
|
|||||||
|
|
||||||
class PowerPortFilterForm(DeviceComponentFilterForm):
|
class PowerPortFilterForm(DeviceComponentFilterForm):
|
||||||
model = PowerPort
|
model = PowerPort
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class PowerPortForm(BootstrapMixin, forms.ModelForm):
|
class PowerPortForm(BootstrapMixin, forms.ModelForm):
|
||||||
@ -2374,6 +2377,7 @@ class PowerPortCSVForm(forms.ModelForm):
|
|||||||
|
|
||||||
class PowerOutletFilterForm(DeviceComponentFilterForm):
|
class PowerOutletFilterForm(DeviceComponentFilterForm):
|
||||||
model = PowerOutlet
|
model = PowerOutlet
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class PowerOutletForm(BootstrapMixin, forms.ModelForm):
|
class PowerOutletForm(BootstrapMixin, forms.ModelForm):
|
||||||
@ -2542,6 +2546,7 @@ class PowerOutletBulkDisconnectForm(ConfirmationForm):
|
|||||||
|
|
||||||
class InterfaceFilterForm(DeviceComponentFilterForm):
|
class InterfaceFilterForm(DeviceComponentFilterForm):
|
||||||
model = Interface
|
model = Interface
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class InterfaceForm(InterfaceCommonForm, BootstrapMixin, forms.ModelForm):
|
class InterfaceForm(InterfaceCommonForm, BootstrapMixin, forms.ModelForm):
|
||||||
@ -2855,6 +2860,7 @@ class InterfaceBulkDisconnectForm(ConfirmationForm):
|
|||||||
|
|
||||||
class FrontPortFilterForm(DeviceComponentFilterForm):
|
class FrontPortFilterForm(DeviceComponentFilterForm):
|
||||||
model = FrontPort
|
model = FrontPort
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class FrontPortForm(BootstrapMixin, forms.ModelForm):
|
class FrontPortForm(BootstrapMixin, forms.ModelForm):
|
||||||
@ -3032,6 +3038,7 @@ class FrontPortBulkDisconnectForm(ConfirmationForm):
|
|||||||
|
|
||||||
class RearPortFilterForm(DeviceComponentFilterForm):
|
class RearPortFilterForm(DeviceComponentFilterForm):
|
||||||
model = RearPort
|
model = RearPort
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class RearPortForm(BootstrapMixin, forms.ModelForm):
|
class RearPortForm(BootstrapMixin, forms.ModelForm):
|
||||||
@ -3636,6 +3643,7 @@ class CableFilterForm(BootstrapMixin, forms.Form):
|
|||||||
|
|
||||||
class DeviceBayFilterForm(DeviceComponentFilterForm):
|
class DeviceBayFilterForm(DeviceComponentFilterForm):
|
||||||
model = DeviceBay
|
model = DeviceBay
|
||||||
|
tag = TagFilterField(model)
|
||||||
|
|
||||||
|
|
||||||
class DeviceBayForm(BootstrapMixin, forms.ModelForm):
|
class DeviceBayForm(BootstrapMixin, forms.ModelForm):
|
||||||
|
Loading…
Reference in New Issue
Block a user