Skip to content

Commit f30acbf

Browse files
committed
feat(filter): ACLExtendedRule: Instruct new Sources to be displayed as Tabbed Group; Improve Fieldsets
1 parent 836851f commit f30acbf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

netbox_acls/forms/filtersets.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,17 @@ class ACLExtendedRuleFilterForm(NetBoxModelFilterSetForm):
313313
(
314314
"access_list",
315315
"action",
316-
"source_prefix",
317-
"desintation_prefix",
318316
"protocol",
319317
),
320318
),
319+
FieldSet(
320+
TabbedGroups(
321+
FieldSet('source_prefix', name=_('Prefix')),
322+
FieldSet('source_iprange', name=_('IP Range')),
323+
FieldSet('source_ipaddress', name=_('IP Address')),
324+
FieldSet('source_aggregate', name=_('Aggregate')),
325+
FieldSet('source_service', name=_('Service')),
326+
),
327+
"source_ports",
328+
),
321329
)

0 commit comments

Comments
 (0)