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

161 lines
4.5 KiB
HTML
Raw Normal View History

2021-06-23 21:24:23 -04:00
{% extends 'generic/object.html' %}
{% load helpers %}
{% load plugins %}
{% load i18n %}
2021-06-23 21:24:23 -04:00
{% block content %}
<div class="row mb-3">
<div class="col col-md-6">
<div class="card">
<h5 class="card-header">
{% trans "Webhook" %}
2021-06-23 21:24:23 -04:00
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">{% trans "Name" %}</th>
2021-06-23 21:24:23 -04:00
<td>{{ object.name }}</td>
</tr>
<tr>
<th scope="row">{% trans "Enabled" %}</th>
<td>{% checkmark object.enabled %}</td>
2021-06-23 21:24:23 -04:00
</tr>
</table>
</div>
</div>
<div class="card">
<h5 class="card-header">
{% trans "Events" %}
2021-06-23 21:24:23 -04:00
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">{% trans "Create" %}</th>
<td>{% checkmark object.type_create %}</td>
2021-06-23 21:24:23 -04:00
</tr>
<tr>
<th scope="row">{% trans "Update" %}</th>
<td>{% checkmark object.type_update %}</td>
2021-06-23 21:24:23 -04:00
</tr>
<tr>
<th scope="row">{% trans "Delete" %}</th>
<td>{% checkmark object.type_delete %}</td>
2021-06-23 21:24:23 -04:00
</tr>
<tr>
<th scope="row">{% trans "Job start" %}</th>
<td>{% checkmark object.type_job_start %}</td>
</tr>
<tr>
<th scope="row">{% trans "Job end" %}</th>
<td>{% checkmark object.type_job_end %}</td>
</tr>
2021-06-23 21:24:23 -04:00
</table>
</div>
</div>
<div class="card">
<h5 class="card-header">
{% trans "HTTP Request" %}
2021-06-23 21:24:23 -04:00
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">{% trans "HTTP Method" %}</th>
2021-06-23 21:24:23 -04:00
<td>{{ object.get_http_method_display }}</td>
</tr>
<tr>
<th scope="row">{% trans "Payload URL" %}</th>
<td class="font-monospace">{{ object.payload_url }}</td>
2021-06-23 21:24:23 -04:00
</tr>
<tr>
<th scope="row">{% trans "HTTP Content Type" %}</th>
2021-06-23 21:24:23 -04:00
<td>{{ object.http_content_type }}</td>
</tr>
<tr>
<th scope="row">{% trans "Secret" %}</th>
2021-06-23 21:24:23 -04:00
<td>{{ object.secret|placeholder }}</td>
</tr>
</table>
</div>
</div>
<div class="card">
<h5 class="card-header">
{% trans "SSL" %}
2021-06-23 21:24:23 -04:00
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">{% trans "SSL Verification" %}</th>
<td>{% checkmark object.ssl_verification %}</td>
2021-06-23 21:24:23 -04:00
</tr>
<tr>
<th scope="row">{% trans "CA File Path" %}</th>
<td>{{ object.ca_file_path|placeholder }}</td>
2021-06-23 21:24:23 -04:00
</tr>
</table>
</div>
</div>
{% plugin_left_page object %}
</div>
<div class="col col-md-6">
<div class="card">
<h5 class="card-header">
{% trans "Assigned Models" %}
2021-06-23 21:24:23 -04:00
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
{% for ct in object.content_types.all %}
<tr>
<td>{{ ct }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
2021-11-03 14:01:59 -04:00
<div class="card">
<h5 class="card-header">
{% trans "Conditions" %}
2021-11-03 14:01:59 -04:00
</h5>
<div class="card-body">
{% if object.conditions %}
<pre>{{ object.conditions|json }}</pre>
2021-11-03 14:01:59 -04:00
{% else %}
<p class="text-muted">{% trans "None" %}</p>
2021-11-03 14:01:59 -04:00
{% endif %}
</div>
</div>
2021-06-23 21:24:23 -04:00
<div class="card">
<h5 class="card-header">
{% trans "Additional Headers" %}
2021-06-23 21:24:23 -04:00
</h5>
<div class="card-body">
2021-11-24 13:17:59 -05:00
{% if object.additional_headers %}
<pre>{{ object.additional_headers }}</pre>
{% else %}
<span class="text-muted">{% trans "None" %}</span>
2021-11-24 13:17:59 -05:00
{% endif %}
2021-06-23 21:24:23 -04:00
</div>
</div>
<div class="card">
<h5 class="card-header">
{% trans "Body Template" %}
2021-06-23 21:24:23 -04:00
</h5>
<div class="card-body">
2021-11-24 13:17:59 -05:00
{% if object.body_template %}
<pre>{{ object.body_template }}</pre>
{% else %}
<span class="text-muted">{% trans "None" %}</span>
2021-11-24 13:17:59 -05:00
{% endif %}
2021-06-23 21:24:23 -04:00
</div>
</div>
{% include 'inc/panels/custom_fields.html' %}
{% include 'inc/panels/tags.html' %}
2021-06-23 21:24:23 -04:00
{% plugin_right_page object %}
</div>
</div>
<div class="row">
<div class="col col-md-12">
{% plugin_full_width_page object %}
</div>
</div>
2021-06-23 21:24:23 -04:00
{% endblock %}