mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-07 19:28:11 +01:00
started rpc page.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
{% include 'header.html' %}
|
||||
|
||||
<p><a href="/wallets">View Wallets</a></p>
|
||||
|
||||
<p>
|
||||
{% if refresh %}
|
||||
Page Refresh: {{ refresh }} seconds<br/>
|
||||
@@ -9,6 +7,9 @@ Page Refresh: {{ refresh }} seconds<br/>
|
||||
Version: {{ version }}
|
||||
</p>
|
||||
<p>
|
||||
<a href="/wallets">View Wallets</a><br/>
|
||||
<a href="/rpc">RPC Console</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/>
|
||||
<a href="/sentoffers">Sent Offers: {{ summary.num_sent_offers }}</a><br/>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
{% for c in coins %}
|
||||
<option value="{{ c[0] }}">{{ c[1] }}</option>
|
||||
{% endfor %}
|
||||
</select>'
|
||||
</select>
|
||||
</td><td>Amount From</td><td><input type="text" name="amt_from"></td></tr>
|
||||
|
||||
<tr><td>Coin To</td><td>
|
||||
@@ -21,7 +21,7 @@
|
||||
{% for c in coins %}
|
||||
<option value="{{ c[0] }}">{{ c[1] }}</option>
|
||||
{% endfor %}
|
||||
</select>'
|
||||
</select>
|
||||
</td><td>Amount To</td><td><input type="text" name="amt_to"></td></tr>
|
||||
|
||||
<tr><td>Contract locked (hrs)</td><td><input type="number" name="lockhrs" min="2" max="96" value="48"></td><td colspan=2>Participate txn will be locked for half the time.</td></tr>
|
||||
|
||||
28
basicswap/templates/rpc.html
Normal file
28
basicswap/templates/rpc.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% include 'header.html' %}
|
||||
|
||||
<h3>New Offer</h3>
|
||||
{% for m in messages %}
|
||||
<p>{{ m }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<form method="post">
|
||||
<p>
|
||||
<select name="coin_type"><option value="-1">-- Select Coin --</option>
|
||||
{% for c in coins %}
|
||||
<option value="{{ c[0] }}">{{ c[1] }}</option>
|
||||
{% endfor %}
|
||||
</select><br/>
|
||||
<input type="text" name="cmd"><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>
|
||||
Reference in New Issue
Block a user