Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
3.4 KiB
91 lines
3.4 KiB
{% include 'header.html' %} |
|
|
|
<h3>Offer {{ offer_id }}</h3> |
|
{% if refresh %} |
|
<p>Page Refresh: {{ refresh }} seconds</p> |
|
{% endif %} |
|
|
|
{% for m in messages %} |
|
<p>{{ m }}</p> |
|
{% endfor %} |
|
|
|
{% if sent_bid_id %} |
|
<p><a href="/bid/{{ sent_bid_id }}">Sent Bid {{ sent_bid_id }}</a></p> |
|
{% endif %} |
|
|
|
<table> |
|
<tr><td>Offer State</td><td>{{ data.state }}</td></tr> |
|
<tr><td>Coin From</td><td>{{ data.coin_from }}</td></tr> |
|
<tr><td>Coin To</td><td>{{ data.coin_to }}</td></tr> |
|
<tr><td>Amount From</td><td>{{ data.amt_from }} {{ data.tla_from }}</td></tr> |
|
<tr><td>Amount To</td><td>{{ data.amt_to }} {{ data.tla_to }}</td></tr> |
|
<tr><td>Rate</td><td>{{ data.rate }}</td></tr> |
|
<tr><td>Amount Variable</td><td>{{ data.amount_negotiable }}</td></tr> |
|
<tr><td>Rate Variable</td><td>{{ data.rate_negotiable }}</td></tr> |
|
<tr><td>Script Lock Type</td><td>{{ data.lock_type }}</td></tr> |
|
<tr><td>Script Lock Value</td><td>{{ data.lock_value }}</td></tr> |
|
<tr><td>Address To</td><td>{{ data.addr_to }}</td></tr> |
|
<tr><td>Address From</td><td><a class="monospace" href="/identity/{{ data.addr_from }}">{{ data.addr_from }}</a></td></tr> |
|
<tr><td>Created At</td><td>{{ data.created_at | formatts }}</td></tr> |
|
<tr><td>Expired At</td><td>{{ data.expired_at | formatts }}</td></tr> |
|
<tr><td>Sent</td><td>{{ data.sent }}</td></tr> |
|
<tr><td>Revoked</td><td>{{ data.was_revoked }}</td></tr> |
|
{% if data.sent == 'True' %} |
|
<tr><td>Auto Accept Bids</td><td>{{ data.auto_accept }}</td></tr> |
|
{% endif %} |
|
|
|
{% if data.xmr_type == true %} |
|
<tr><td>Chain A offer fee rate</td><td>{{ data.a_fee_rate }}</td></tr> |
|
<tr><td>Chain A local fee rate</td><td>{{ data.a_fee_rate_verify }}, fee source: {{ data.a_fee_rate_verify_src }} {% if data.a_fee_warn == true %} WARNING {% endif %}</td></tr> |
|
{% endif %} |
|
</table> |
|
|
|
<form method="post"> |
|
{% if data.show_bid_form %} |
|
<br/><h4>New Bid</h4> |
|
<p>You will send {{ data.amt_to }} {{ data.tla_to }} and receive {{ data.amt_from }} {{ data.tla_from }} |
|
{% if data.xmr_type == true %} |
|
(excluding {{ data.amt_from_lock_spend_tx_fee }} {{ data.tla_from }} in tx fees). |
|
{% else %} |
|
(excluding a tx fee). |
|
{% endif %} |
|
</p> |
|
|
|
<table> |
|
<tr><td>Send From Address</td><td> |
|
<select name="addr_from"> |
|
{% for a in addrs %} |
|
<option value="{{ a }}" {% if data.nb_addr_from==a %} selected{% endif %}>{{ a }}</option> |
|
{% endfor %} |
|
<option value="-1" {% if data.nb_addr_from=="-1" %} selected{% endif %}>-- New Address --</option> |
|
</select> |
|
</td></tr> |
|
<tr><td>Minutes valid</td><td><input type="number" name="validmins" min="10" max="1440" value="{{ data.nb_validmins }}"></td></tr> |
|
|
|
<tr><td><input type="submit" name="sendbid" value="Send Bid"><input type="submit" name="cancel" value="Cancel"></td></tr> |
|
</table> |
|
{% else %} |
|
<input type="submit" name="newbid" value="New Bid"> |
|
{% if data.sent == 'True' and data.was_revoked != true %} |
|
<input name="revoke_offer" type="submit" value="Revoke Offer" onclick="return confirmPopup();"> |
|
{% endif %} |
|
{% endif %} |
|
<input type="hidden" name="formid" value="{{ form_id }}"> |
|
</form> |
|
|
|
<h4>Bids</h4> |
|
<table> |
|
<tr><th>Bid ID</th><th>Bid Amount</th><th>Bid Rate</th><th>Bid Status</th><th>Identity From</th></tr> |
|
{% for b in bids %} |
|
<tr><td><a class="monospace" href=/bid/{{ b[0] }}>{{ b[0] }}</a></td><td>{{ b[1] }}</td><td>{{ b[3] }}</td><td>{{ b[2] }}</td><td><a class="monospace" href=/identity/{{ b[4] }}>{{ b[4] }}</a></td></tr> |
|
{% endfor %} |
|
</table> |
|
|
|
<p><a href="/">home</a></p> |
|
|
|
<script> |
|
function confirmPopup() { |
|
return confirm("Are you sure?"); |
|
} |
|
</script> |
|
</body></html>
|
|
|