fisk/core/templates/partials/callback-list.html

54 lines
1.4 KiB
HTML
Raw Normal View History

2023-02-11 14:52:00 +00:00
{% load cache %}
2023-02-11 17:22:25 +00:00
{% load cachalot cache %}
{% get_last_invalidation 'core.Callback' as last %}
{% include 'mixins/partials/notify.html' %}
2023-02-15 07:20:53 +00:00
{% cache 600 objects_callbacks request.user.id object_list type last %}
2023-02-11 14:52:00 +00:00
<table class="table is-fullwidth is-hoverable" id="callbacks-table">
<thead>
<th>id</th>
<th>hook id</th>
<th>hook name</th>
<th>title</th>
<th>message</th>
<th>period</th>
<th>sent</th>
<th>trade</th>
<th>exchange</th>
<th>symbol</th>
<th>price</th>
<th>contract</th>
<th>actions</th>
</thead>
{% for item in object_list %}
<tr>
<td>{{ item.id }}</td>
<td>{{ item.hook.id }}</td>
<td>
<a
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-get="{% url 'hook_update' type=type pk=item.hook.id %}"
hx-trigger="click"
hx-target="#{{ type }}s-here"
hx-swap="innerHTML">{{ item.hook.name }}
</a>
</td>
<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>
2023-02-11 14:52:00 +00:00
<td>
<div class="buttons">
2022-10-16 13:37:49 +00:00
2023-02-11 14:52:00 +00:00
</div>
</td>
</tr>
{% endfor %}
2023-02-11 14:52:00 +00:00
</table>
{% endcache %}