Fix tx state display in lists.

selectable address for send_from.
This commit is contained in:
tecnovert
2019-07-28 21:57:20 +02:00
parent 18ee89361a
commit 4bc0ec98eb
8 changed files with 162 additions and 76 deletions

View File

@@ -31,6 +31,28 @@
{% endif %}
</table>
<form method="post">
{% if data.show_bid_form %}
<br/><h4>New Bid</h4>
<table>
<tr><td>Send From Address</td><td>
<select name="addr_from">
{% for a in addrs %}
<option value="{{ a }}">{{ a }}</option>
{% endfor %}
<option value="-1">-- New Address --</option>
</select>
</td></tr>
<tr><td><input type="submit" name="sendbid" value="Send Bid"></td></tr>
</table>
{% else %}
<input type="submit" name="newbid" value="New Bid">
{% 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 Status</th><th>ITX Status</th><th>PTX Status</th></tr>
@@ -39,10 +61,5 @@
{% endfor %}
</table>
<form method="post">
<input type="submit" value="Send Bid">
<input type="hidden" name="formid" value="{{ form_id }}">
</form>
<p><a href="/">home</a></p>
</body></html>

View File

@@ -8,6 +8,13 @@
<form method="post">
<table>
<tr><td>Send From Address</td><td><select name="addr_from">
{% for a in addrs %}
<option value="{{ a }}">{{ a }}</option>
{% endfor %}
<option value="-1">-- New Address --</option>
</select></td></tr>
<tr><td>Coin From</td><td>
<select name="coin_from"><option value="-1">-- Select Coin --</option>
{% for c in coins %}