1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add UI views for webhooks

This commit is contained in:
jeremystretch
2021-06-23 21:24:23 -04:00
parent 10cbbee947
commit 4e0b795a3c
11 changed files with 426 additions and 57 deletions

View File

@@ -86,6 +86,27 @@ class ExportTemplateTable(BaseTable):
)
#
# Webhooks
#
class WebhookTable(BaseTable):
pk = ToggleColumn()
name = tables.Column(
linkify=True
)
class Meta(BaseTable.Meta):
model = Webhook
fields = (
'pk', 'name', 'enabled', 'type_create', 'type_update', 'type_delete', 'http_method', 'payload_url',
'secret', 'ssl_validation', 'ca_file_path',
)
default_columns = (
'pk', 'name', 'enabled', 'type_create', 'type_update', 'type_delete', 'http_method', 'payload_url',
)
#
# Tags
#