2021-06-23 21:24:23 -04:00
|
|
|
{% extends 'generic/object.html' %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load plugins %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Webhook
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Name</th>
|
|
|
|
<td>{{ object.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Enabled</th>
|
|
|
|
<td>
|
|
|
|
{% if object.enabled %}
|
|
|
|
<i class="mdi mdi-check-bold text-success" title="Yes"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="mdi mdi-close-thick text-danger" title="No"></i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Events
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Create</th>
|
|
|
|
<td>
|
|
|
|
{% if object.type_create %}
|
|
|
|
<i class="mdi mdi-check-bold text-success" title="Yes"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="mdi mdi-close-thick text-danger" title="No"></i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Update</th>
|
|
|
|
<td>
|
2021-10-14 20:35:21 +03:00
|
|
|
{% if object.type_update %}
|
2021-06-23 21:24:23 -04:00
|
|
|
<i class="mdi mdi-check-bold text-success" title="Yes"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="mdi mdi-close-thick text-danger" title="No"></i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Delete</th>
|
|
|
|
<td>
|
2021-10-14 20:35:21 +03:00
|
|
|
{% if object.type_delete %}
|
2021-06-23 21:24:23 -04:00
|
|
|
<i class="mdi mdi-check-bold text-success" title="Yes"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="mdi mdi-close-thick text-danger" title="No"></i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
HTTP Request
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">HTTP Method</th>
|
|
|
|
<td>{{ object.get_http_method_display }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Payload URL</th>
|
2021-09-09 16:05:46 -04:00
|
|
|
<td class="font-monospace">{{ object.payload_url }}</td>
|
2021-06-23 21:24:23 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">HTTP Content Type</th>
|
|
|
|
<td>{{ object.http_content_type }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Secret</th>
|
|
|
|
<td>{{ object.secret|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
SSL
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">SSL Verification</th>
|
|
|
|
<td>
|
|
|
|
{% if object.ssl_verification %}
|
|
|
|
<i class="mdi mdi-check-bold text-success" title="Yes"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="mdi mdi-close-thick text-danger" title="No"></i>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">CA File Path</th>
|
2021-09-09 09:10:02 -04:00
|
|
|
<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">
|
|
|
|
Assigned Models
|
|
|
|
</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>
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Additional Headers
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<pre>{{ object.additional_headers }}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Body Template
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<pre>{{ object.body_template }}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% plugin_right_page object %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-22 11:40:55 -04:00
|
|
|
<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 %}
|