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.

65 lines
2.5 KiB
HTML

11 months ago
<table class="striped">
<thead>
<tr>
<th>Label</th>
11 months ago
<th>Status</th>
<th>Action</th>
<th>Address</th>
<th>Height</th>
</tr>
</thead>
<tbody>
{% for status in requests %}
{% for request in requests[status] %}
11 months ago
<tr>
<td>?</td>
11 months ago
<td>
<span class="tag text-grey">
PENDING
11 months ago
</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>
11 months ago
</td>
<td>{{ request['address'] | shorten }}</td>
<td>{{ request['start_height'] }}</td>
11 months ago
</tr>
{% endfor %}
{% endfor %}
{% for status in accounts %}
{% for account in accounts[status] %}
11 months ago
<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 }}</div>
</td>
<td>
<span class="tag {% if status == 'active' %}text-primary{% else %}text-error{% endif %}">
{{ status | upper }}
11 months ago
</span>
</td>
<td>
{% if status == 'active' %}
<!-- <a href="/wallet/{{ account['address'] }}/inactive" class="button secondary outline">Disable</a> -->
<button class="button primary outline" tx-target="#show_wallets" hx-get="/wallet/{{ account['address'] }}/inactive">Disable</button>
{% else %}
<a href="/wallet/{{ account['address'] }}/active" class="button primary outline">Enable</a>
{% endif %}
</td>
<td>{{ account['address'] | shorten }}</td>
<td>
{{ account['scan_height'] }}
<!--
<form method="get" action="{{ url_for('wallet.rescan') }}">
<input type="integer" name="height" style="width: 5em; display: inline;" />
<input type="hidden" name="address" value="{{ account['address'] }}" />
<button type="submit">Rescan</button>
</form>
-->
11 months ago
</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>