Remove some useless buttons
This commit is contained in:
parent
077768975d
commit
5aac60a7ee
|
@ -1,5 +1,7 @@
|
||||||
{% if message is not None %}
|
<div id="notification">
|
||||||
|
{% if message is not None %}
|
||||||
<div class="notification is-{{ class }}" hx-ext="remove-me" remove-me="3s">
|
<div class="notification is-{{ class }}" hx-ext="remove-me" remove-me="3s">
|
||||||
{{ message }}
|
{{ message }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
|
@ -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">
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
{% if type == 'page' %}
|
<!-- {% if type == 'page' %}
|
||||||
<a href="#"><button
|
<a href="#"><button
|
||||||
class="button is-success">
|
class="button is-success">
|
||||||
<span class="icon-text">
|
<span class="icon-text">
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %} -->
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue