improve ux
parent
04c74bb243
commit
65e7e5c4e3
@ -1,12 +1,11 @@
|
|||||||
{% extends 'includes/base.html' %}
|
{% extends 'includes/base.html' %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="dashboard">
|
<h1>LWS Web Admin</h1>
|
||||||
<h1>LWS Web Admin</h1>
|
<a href="{{ url_for('wallet.list') }}" class="button outline primary">Manage Wallets</a>
|
||||||
<p>LWS Admin: {{ config.LWS_ADMIN_URL }}</p>
|
<hr>
|
||||||
<p>LWS RPC: {{ config.LWS_URL }}</p>
|
<p>LWS Admin: {{ config.LWS_ADMIN_URL }}</p>
|
||||||
<p>{{ wallets.count() }} wallet{% if wallets.count() > 1 %}s{% endif %} being tracked</p>
|
<p>LWS RPC: {{ config.LWS_URL }}</p>
|
||||||
<a href="{{ url_for('wallet.list') }}" class="button outline primary">Manage Wallets</a>
|
<p>{{ wallets.count() }} wallet{% if wallets.count() > 1 %}s{% endif %} being scanned by LWS</p>
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -1,21 +1,12 @@
|
|||||||
{% extends 'includes/base.html' %}
|
{% extends 'includes/base.html' %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="login">
|
<h1>Login</h1>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<label for="username">Username</label>
|
<label for="username">Username</label>
|
||||||
<input type="text" name="username" />
|
<input type="text" name="username" />
|
||||||
<label for="password">Password</label>
|
<label for="password">Password</label>
|
||||||
<input type="password" name="password" />
|
<input type="password" name="password" />
|
||||||
<button type="submit">Send</button>
|
<button type="submit">Send</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
input {
|
|
||||||
display: block;
|
|
||||||
padding-bottom: .5em;
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -1,27 +1,21 @@
|
|||||||
{% extends 'includes/base.html' %}
|
{% extends 'includes/base.html' %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<a href="/wallets">Go Back</a>
|
||||||
{% set info = wallet.get_wallet_info() %}
|
{% set info = wallet.get_wallet_info() %}
|
||||||
<h1>{{ wallet.name }}</h1>
|
<h1>{{ wallet.name }}</h1>
|
||||||
<h5>{{ wallet.description }}</h5>
|
<h5>{{ wallet.description }}</h5>
|
||||||
<h6>{{ wallet.date }}</h6>
|
<h6>{{ wallet.date }}</h6>
|
||||||
<p>Restore Height: {{ wallet.restore_height }}</p>
|
<p>Restore Height: {{ wallet.restore_height }}</p>
|
||||||
<p>Address: {{ wallet.address }}</p>
|
<p>Address: <span class="key">{{ wallet.address }}</span></p>
|
||||||
<p>Locked: {{ info['locked_funds'] }}</p>
|
<p>Scanned Height: {{ info['scanned_height'] }} <span class="smol">({{ info['blockchain_height'] - info['scanned_height'] }} blocks away from top)</span></p>
|
||||||
<p>Received: {{ info['total_received'] }}</p>
|
|
||||||
<p>Sent: {{ info['total_sent'] }}</p>
|
|
||||||
<p>Scanned Height: {{ info['scanned_height'] }} ({{ info['blockchain_height'] - info['scanned_height'] }} blocks away from top)</p>
|
|
||||||
<p>Chain Height: {{ info['blockchain_height'] }}</p>
|
<p>Chain Height: {{ info['blockchain_height'] }}</p>
|
||||||
<p>Spent Outputs: {{ info['spent_outputs'] | length }}</p>
|
<p>Spent Outputs: {{ info['spent_outputs'] | length }}</p>
|
||||||
<!--
|
|
||||||
{
|
|
||||||
'amount': '123123123',
|
|
||||||
'key_image': 'asdasdasd',
|
|
||||||
'tx_pub_key': 'asdasdasd',
|
|
||||||
'out_index': 1,
|
|
||||||
'mixin': 15
|
|
||||||
}
|
|
||||||
-->
|
|
||||||
|
|
||||||
<a href="{{ url_for('wallet.rescan', id=wallet.id) }}"><button>rescan</button></a>
|
<a href="{{ url_for('wallet.rescan', id=wallet.id) }}" class="button dark outline">rescan</a>
|
||||||
|
{% if request.args.get('disable') %}
|
||||||
|
<a href="{{ url_for('wallet.disable', id=wallet.id) }}" class="button error">are you sure?</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="?disable=true" class="button error">disable</a>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue