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.

84 lines
3.2 KiB

{% include 'header.html' %}
<h3>Settings</h3>
{% for m in messages %}
<p>{{ m }}</p>
{% endfor %}
<form method="post">
{% for c in chains %}
<h4>{{ c.name|capitalize }}</h4>
<table>
{% if c.connection_type %}
<tr><td>Connection Type</td><td>{{ c.connection_type }}</td></tr>
{% endif %}
{% if c.manage_daemon is defined %}
{% if c.name == 'monero' %}
<tr><td>Manage Daemon</td><td>
<select name="managedaemon_{{ c.name }}">
<option value="true"{% if c.manage_daemon==true %} selected{% endif %}>True</option>
<option value="false"{% if c.manage_daemon==false %} selected{% endif %}>False</option>
</select></td></tr>
<tr><td>Daemon RPC Host</td><td><input type="text" name="rpchost_{{ c.name }}" value="{{ c.rpchost }}"></td></tr>
<tr><td>Daemon RPC Port</td><td><input type="text" name="rpcport_{{ c.name }}" value="{{ c.rpcport }}"></td></tr>
<tr><td colspan=2>Remote Daemon Urls<br/>
List of public nodes to use if "Automatically Select Daemon" is true.<br/>
Add one entry per line, eg:<br/>
node.xmr.to:18081<br/>
<textarea class="monospace" name="remotedaemonurls_{{ c.name }}" rows="10" cols="100">
{{ c.remotedaemonurls }}
</textarea>
</td></tr>
<tr><td>Automatically Select Daemon</td><td>
<select name="autosetdaemon_{{ c.name }}">
<option value="true"{% if c.autosetdaemon==true %} selected{% endif %}>True</option>
<option value="false"{% if c.autosetdaemon==false %} selected{% endif %}>False</option>
</select></td></tr>
{% else %}
<tr><td>Manage Daemon</td><td>{{ c.manage_daemon }}</td></tr>
{% endif %}
{% endif %}
{% if c.manage_wallet_daemon is defined %}
<tr><td>Manage Wallet Daemon</td><td>{{ c.manage_wallet_daemon }}</td></tr>
{% endif %}
<tr><td>Chain Lookups</td><td>
<select name="lookups_{{ c.name }}">
<option value="local"{% if c.lookups=='local' %} selected{% endif %}>Local Node</option>
<option value="explorer"{% if c.lookups=='explorer' %} selected{% endif %}>Explorer</option>
</select></td></tr>
{% if c.name == 'monero' %}
<tr><td>Transaction Fee Priority</td><td>
<select name="fee_priority_{{ c.name }}">
<option value="0"{% if c.fee_priority==0 %} selected{% endif %}>Default</option>
<option value="1"{% if c.fee_priority==1 %} selected{% endif %}>Low</option>
<option value="2"{% if c.fee_priority==2 %} selected{% endif %}>Medium</option>
<option value="3"{% if c.fee_priority==3 %} selected{% endif %}>High</option>
</select></td></tr>
{% else %}
<tr><td>Blocks Confirmed Target</td><td><input type="number" name="conf_target_{{ c.name }}" min="1" max="32" value="{{ c.conf_target }}"></td></tr>
{% endif %}
<tr><td><input type="submit" name="apply_{{ c.name }}" value="Apply">
{% if c.can_disable == true %}
<input type="submit" name="disable_{{ c.name }}" value="Disable" onclick="return confirmPopup('Disable', '{{ c.name|capitalize }}');">
{% endif %}
{% if c.can_reenable == true %}
<input type="submit" name="enable_{{ c.name }}" value="Enable" onclick="return confirmPopup('Enable', '{{ c.name|capitalize }}');">
{% endif %}
</td></tr>
</table>
{% endfor %}
</table>
<input type="hidden" name="formid" value="{{ form_id }}">
</form>
<p><a href="/">home</a></p>
<script>
function confirmPopup(action, coin_name) {
return confirm(action + " " + coin_name + "?\nWill shutdown basicswap.");
}
</script>
</body></html>