mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-07 19:28:11 +01:00
Started stutdown and explorer pages.
Bid state can be manually edited.
This commit is contained in:
@@ -34,12 +34,33 @@
|
||||
{% endif %}
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<form method="post">
|
||||
{% if edit_bid %}
|
||||
<h4>Edit Bid</h4>
|
||||
<table>
|
||||
<tr><td>Change Bid State</td><td>
|
||||
<select name="new_state">
|
||||
{% for s in data.bid_states %}
|
||||
<option value="{{ s[0] }}"{% if data.bid_state_ind==s[0] %} selected{% endif %}>{{ s[1] }}</option>
|
||||
{% endfor %}
|
||||
</select></td></tr>
|
||||
</table>
|
||||
<input name="edit_bid_cancel" type="submit" value="Cancel">
|
||||
<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/>
|
||||
{% endif %}
|
||||
<input name="abandon_bid" type="submit" value="Abandon Bid">
|
||||
{% if data.show_txns %}
|
||||
<input name="hide_txns" type="submit" value="Hide Info">
|
||||
{% else %}
|
||||
<input name="show_txns" type="submit" value="Show More Info">
|
||||
{% endif %}
|
||||
<input name="edit_bid" type="submit" value="Edit Bid">
|
||||
{% endif %}
|
||||
<input type="hidden" name="formid" value="{{ form_id }}">
|
||||
</form>
|
||||
|
||||
|
||||
33
basicswap/templates/explorers.html
Normal file
33
basicswap/templates/explorers.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% include 'header.html' %}
|
||||
|
||||
<h3>Explorers</h3>
|
||||
{% for m in messages %}
|
||||
<p>{{ m }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<form method="post">
|
||||
<p>
|
||||
<select name="explorer"><option value="-1"{% if explorer==-1 %} selected{% endif %}>-- Select Explorer --</option>
|
||||
{% for e in explorers %}
|
||||
<option value="{{ e[0] }}"{% if explorer==e[0] %} selected{% endif %}>{{ e[1] }}</option>
|
||||
{% endfor %}
|
||||
</select><br/>
|
||||
<select name="action"><option value="-1"{% if action==-1 %} selected{% endif %}>-- Select Action --</option>
|
||||
{% for a in actions %}
|
||||
<option value="{{ a[0] }}"{% if action==a[0] %} selected{% endif %}>{{ a[1] }}</option>
|
||||
{% endfor %}
|
||||
</select><br/>
|
||||
<input type="text" name="args"><br/>
|
||||
<input type="submit" value="Submit">
|
||||
<input type="hidden" name="formid" value="{{ form_id }}">
|
||||
</p>
|
||||
</form>
|
||||
|
||||
{% if result %}
|
||||
<textarea id="story" name="story" rows="40" cols="160">
|
||||
{{ result }}
|
||||
</textarea>
|
||||
{% endif %}
|
||||
|
||||
<p><a href="/">home</a></p>
|
||||
</body></html>
|
||||
@@ -9,6 +9,7 @@ Version: {{ version }}
|
||||
<p>
|
||||
<a href="/wallets">View Wallets</a><br/>
|
||||
<a href="/rpc">RPC Console</a><br/>
|
||||
<a href="/explorers">Explorers</a><br/>
|
||||
<br/>
|
||||
<a href="/active">Swaps in progress: {{ summary.num_swapping }}</a><br/>
|
||||
<a href="/offers">Network Offers: {{ summary.num_network_offers }}</a><br/>
|
||||
@@ -18,7 +19,9 @@ Version: {{ version }}
|
||||
<a href="/watched">Watched Outputs: {{ summary.num_watched_outputs }}</a><br/>
|
||||
</p>
|
||||
|
||||
<p><a href="/newoffer">New Offer</a><br/></p>
|
||||
<p><a href="/newoffer">New Offer</a></p>
|
||||
|
||||
<p><a href="/shutdown">Shutdown</a></p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% include 'header.html' %}
|
||||
|
||||
<h3>New Offer</h3>
|
||||
<h3>RPC Console</h3>
|
||||
{% for m in messages %}
|
||||
<p>{{ m }}</p>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user