-
Notifications
You must be signed in to change notification settings - Fork 234
/
pending_psbt_item.jinja
39 lines (38 loc) · 1.7 KB
/
pending_psbt_item.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{#
pending_psbt_item - Pending PSBT table row.
Parameters:
- pending_psbt: PSBT to show in this row.
- wallet_alias: Active wallet alias.
- wallet: Wallet object.
- specter: Specter object.
#}
{% macro pending_psbt_item(pending_psbt, wallet_alias, wallet, specter) -%}
{% from 'wallet/components/explorer_link.jinja' import explorer_link %}
<tr>
<td></td>
<td class="tx scroll">
{{ explorer_link('address', pending_psbt['address'], wallet.get_address_name(pending_psbt['address'], -1), specter.explorer) }}
</td>
<td>
{{ pending_psbt['amount'] | btcamount }}
</td>
<td>
{{ pending_psbt['time'] | datetime }}
</td>
<td>
{{ '{}/{}'.format(pending_psbt['sigs_count'], wallet.sigs_required) }}
</td>
<td width="170px">
<div class="row">
<form action="{{ url_for('wallet_sendnew',wallet_alias=wallet_alias) }}" method="POST">
<input type="hidden" name="pending_psbt" value='{{ pending_psbt|tojson|safe }}'>
<button type="submit" name="action" value="openpsbt" class="btn" style="margin-right: 5px;">Open</button>
</form>
<form action="{{ url_for('wallet_sendpending',wallet_alias=wallet_alias) }}" method="POST">
<input type="hidden" name="pending_psbt" value='{{ pending_psbt|tojson|safe }}'>
<button type="submit" name="action" value="deletepsbt" class="btn danger" style="margin-left: 5px;" onclick="javascript: form.action='./?pending=True';">Delete</button>
</form>
</div>
</td>
</tr>
{%- endmacro %}