gui: Added confirm step and fee options.

Fee options only apply to the script coin side of xmr swaps.
This commit is contained in:
tecnovert
2020-12-16 23:19:39 +02:00
parent 5cd8286aa3
commit b3c00efe16
12 changed files with 317 additions and 69 deletions

View File

@@ -36,9 +36,11 @@
<input name="edit_bid_submit" type="submit" value="Submit">
{% else %}
{% if data.was_received == 'True' %}
<input name="accept_bid" type="submit" value="Accept Bid"><br/>
<input name="accept_bid" type="submit" value="Accept Bid" onclick="confirmPopup(\"Accept\")"><br/>
{% endif %}
{% if data.can_abandon == true %}
<input name="abandon_bid" type="submit" value="Abandon Bid" onclick="confirmPopup(\"Abandon\")">
{% endif %}
<input name="abandon_bid" type="submit" value="Abandon Bid" onclick="confirmPopup()">
{% if data.show_txns %}
<input name="hide_txns" type="submit" value="Hide Info">
{% else %}
@@ -91,8 +93,8 @@
<p><a href="/">home</a></p>
<script>
function confirmPopup() {
confirm("Are you sure?");
function confirmPopup(name) {
confirm(name + " Bid - Are you sure?");
}
</script>
</body></html>