mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #16061: Omit hidden fields from event rule form
This commit is contained in:
@ -279,10 +279,7 @@ class EventRuleForm(NetBoxModelForm):
|
|||||||
FieldSet('name', 'description', 'object_types', 'enabled', 'tags', name=_('Event Rule')),
|
FieldSet('name', 'description', 'object_types', 'enabled', 'tags', name=_('Event Rule')),
|
||||||
FieldSet('type_create', 'type_update', 'type_delete', 'type_job_start', 'type_job_end', name=_('Events')),
|
FieldSet('type_create', 'type_update', 'type_delete', 'type_job_start', 'type_job_end', name=_('Events')),
|
||||||
FieldSet('conditions', name=_('Conditions')),
|
FieldSet('conditions', name=_('Conditions')),
|
||||||
FieldSet(
|
FieldSet('action_type', 'action_choice', 'action_data', name=_('Action')),
|
||||||
'action_type', 'action_choice', 'action_object_type', 'action_object_id', 'action_data',
|
|
||||||
name=_('Action')
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Reference in New Issue
Block a user