fisk/core/templates/window-content/callbacks.html

51 lines
1.2 KiB
HTML
Raw Normal View History

{% include 'partials/notify.html' %}
<h1 class="title is-4">List of received callbacks</h1>
<table class="table is-fullwidth is-hoverable" id="callbacks-table">
<thead>
<th>id</th>
<th>hook id</th>
<th>hook name</th>
2022-10-16 12:36:17 +00:00
<th>title</th>
2022-10-16 13:37:49 +00:00
<th>message</th>
<th>period</th>
<th>sent</th>
<th>trade</th>
<th>exchange</th>
<th>symbol</th>
<th>price</th>
2022-10-16 13:37:49 +00:00
<th>contract</th>
<th>actions</th>
</thead>
{% for item in items %}
<tr>
<td>{{ item.id }}</td>
<td>{{ item.hook.id }}</td>
<td>
<a
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
2022-10-16 13:37:49 +00:00
hx-get="{% url 'hook_action' type=type hook_id=item.hook.id %}"
hx-trigger="click"
2022-10-17 06:20:30 +00:00
hx-target="#{{ type }}s-here">{{ item.hook.name }}
</a>
</td>
2022-10-16 13:37:49 +00:00
<td>{{ item.title }}</td>
<td>{{ item.message }}</td>
<td>{{ item.period }}</td>
<td>{{ item.sent }}</td>
<td>{{ item.trade }}</td>
<td>{{ item.exchange }}</td>
<td>{{ item.symbol }}</td>
<td>{{ item.price }}</td>
<td>{{ item.contract }}</td>
2022-10-16 13:37:49 +00:00
<td>
<div class="buttons">
</div>
</td>
</tr>
{% endfor %}
</table>