|
|
@ -1,5 +1,11 @@
|
|
|
|
{% include 'partials/notify.html' %}
|
|
|
|
{% include 'partials/notify.html' %}
|
|
|
|
<table class="table is-fullwidth is-hoverable" id="positions-table">
|
|
|
|
<table
|
|
|
|
|
|
|
|
class="table is-fullwidth is-hoverable"
|
|
|
|
|
|
|
|
hx-target="#{{ context_object_name }}-table"
|
|
|
|
|
|
|
|
id="{{ context_object_name }}-table"
|
|
|
|
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
|
|
|
|
hx-trigger="{{ context_object_name_singular }}Event from:body"
|
|
|
|
|
|
|
|
hx-get="{{ list_url }}">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<th>account</th>
|
|
|
|
<th>account</th>
|
|
|
|
<th>asset</th>
|
|
|
|
<th>asset</th>
|
|
|
@ -36,7 +42,7 @@
|
|
|
|
<td>{{ item.trade_ids|length }}</td>
|
|
|
|
<td>{{ item.trade_ids|length }}</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<div class="buttons">
|
|
|
|
<div class="buttons">
|
|
|
|
<button
|
|
|
|
<!-- <button
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
hx-get="#"
|
|
|
|
hx-get="#"
|
|
|
|
hx-trigger="click"
|
|
|
|
hx-trigger="click"
|
|
|
@ -47,12 +53,13 @@
|
|
|
|
<i class="fa-solid fa-pencil"></i>
|
|
|
|
<i class="fa-solid fa-pencil"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</button> -->
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
hx-delete="#trade-close-confirm"
|
|
|
|
hx-delete="{% url 'position_action' side=item.side account_id=item.account_id symbol=item.symbol %}"
|
|
|
|
hx-trigger="click"
|
|
|
|
hx-trigger="click"
|
|
|
|
hx-target="#positions-table"
|
|
|
|
hx-target="#notification"
|
|
|
|
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
hx-confirm="Are you sure you wish to close {{ item.symbol }}?"
|
|
|
|
hx-confirm="Are you sure you wish to close {{ item.symbol }}?"
|
|
|
|
class="button is-danger">
|
|
|
|
class="button is-danger">
|
|
|
|
<span class="icon-text">
|
|
|
|
<span class="icon-text">
|
|
|
|