ui: Add option to create sized utxo.

This commit is contained in:
tecnovert
2022-01-24 23:32:48 +02:00
parent 0fbdd32908
commit 67518efcad
5 changed files with 87 additions and 15 deletions

View File

@@ -15,7 +15,6 @@
<form method="post">
{% if w.updating %}
<h5>Updating</h5>
{% endif %}
@@ -62,8 +61,26 @@
</select></td></tr>
{% endif %}
<tr><td>Fee Rate:</td><td>{{ w.fee_rate }}</td><td>Est Fee:</td><td>{{ w.est_fee }}</td></tr>
{% if w.cid != '6' %}
{% if w.show_utxo_groups %}
<tr><td colspan=3>
<textarea class="monospace" id="tx_view" rows="10" cols="150" readonly>
{{ w.utxo_groups }}
</textarea>
</td></tr>
<tr><td><input type="submit" id="create_utxo" name="create_utxo" value="Create UTXO" onclick="return confirmUTXOResize();"></td><td>Amount: <input type="text" name="utxo_value" value="{{ w.utxo_value }}"></td></tr>
<tr><td>
<input type="submit" id="closeutxogroups" name="closeutxogroups" value="Close UTXO Groups">
</td></tr>
{% else %}
<tr><td>
<input type="submit" id="showutxogroups" name="showutxogroups" value="Show UTXO Groups">
</td></tr>
{% endif %}
</table>
{% endif %}
{% endif %}
{% endif %} <!-- havedata -->
<input type="hidden" name="formid" value="{{ form_id }}">
@@ -78,5 +95,8 @@ function confirmReseed() {
function confirmWithdrawal() {
return confirm("Are you sure?");
}
function confirmUTXOResize() {
return confirm("Are you sure?");
}
</script>
</body></html>