started rpc page.

This commit is contained in:
tecnovert
2019-07-27 23:14:28 +02:00
parent 4972f1f60f
commit cf73707643
6 changed files with 88 additions and 10 deletions

View File

@@ -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/>

View File

@@ -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>

View 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>