You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.2 KiB
HTML
61 lines
2.2 KiB
HTML
<table class="striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Label</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
<th>Address</th>
|
|
<th>Height</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for status in requests %}
|
|
{% for request in requests[status] %}
|
|
<tr>
|
|
<td>?</td>
|
|
<td>
|
|
<span class="tag text-grey">
|
|
PENDING
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<!-- <a hx-get="/htmx/import_wallet" hx-target="#walletForm" class="button primary outline"></a> -->
|
|
<a href="/wallet/{{ request['address'] }}/approve" class="button primary outline">Approve</a>
|
|
<a href="/wallet/{{ request['address'] }}/deny" class="button secondary outline">Deny</a>
|
|
</td>
|
|
<td>{{ request['address'] | shorten }}</td>
|
|
<td>{{ request['start_height'] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% for status in accounts %}
|
|
{% for account in accounts[status] %}
|
|
<tr>
|
|
<td>
|
|
<div hx-get="/htmx/label_wallet" hx-target="this" hx-swap="outerHTML" hx-vals='{"address": "{{ account['address'] }}", "label": "{{ account['address'] | find_label }}"}'>
|
|
{{ account['address'] | find_label }} <i class="fa-regular fa-pen-to-square"></i>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<span class="tag {% if status == 'active' %}text-primary{% else %}text-error{% endif %}">
|
|
{{ status | upper }}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
{% if status == 'active' %}
|
|
<button class="button primary outline" hx-target="#show_wallets" hx-get="/wallet/{{ account['address'] }}/inactive" hx-swap="innerHTML" >Deactivate</button>
|
|
{% else %}
|
|
<button class="button primary outline" hx-target="#show_wallets" hx-get="/wallet/{{ account['address'] }}/active" hx-swap="innerHTML" >Activate</button>
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ account['address'] | shorten }}</td>
|
|
<td>
|
|
<i class="fa-sharp fa-solid fa-spinner fa-spin"></i> {{ account['scan_height'] }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|