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.
105 lines
3.7 KiB
105 lines
3.7 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
{% include 'head.html' %}
|
|
|
|
<body id="page-top">
|
|
|
|
{% include 'navbar.html' %}
|
|
|
|
<section class="section2">
|
|
<div class="container-slim">
|
|
<div class="section-heading text-center">
|
|
<h2>Wallet Info</h2>
|
|
<h4>Address:</h4>
|
|
<p class="slim small">{{ subaddress }}</p>
|
|
<br>
|
|
<img src="data:image/png;base64,{{ qrcode }}" width=200 class="center">
|
|
<hr><br>
|
|
<h4>Balance</h4>
|
|
<p class="inline">{{ balances.1 }} WOW </p>
|
|
<p class="inline small">({{ balances.0 }} locked)</p>
|
|
<span class="dashboard-buttons">
|
|
<div class="col-sm-6 dashboard-button">
|
|
<a class="btn btn-lg btn-link btn-outline btn-xl js-scroll-trigger" href="#transfers">List</a>
|
|
</div>
|
|
<div class="col-sm-6 dashboard-button">
|
|
<a class="btn btn-lg btn-link btn-outline btn-xl js-scroll-trigger" href="#send">Send</a>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section1" id="transfers">
|
|
<div class="container">
|
|
<div class="section-heading text-center">
|
|
<h2>Transfers</h2>
|
|
<table class="table table-striped table-hover table-responsive table-responsive-sm tx-table">
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Type</th>
|
|
<th>Tx ID</th>
|
|
<th>Amount</th>
|
|
<th>Confirmations</th>
|
|
<th>Height</th>
|
|
<th>Fee</th>
|
|
</tr>
|
|
{% for tx in all_transfers | sort(attribute='timestamp', reverse=True) %}
|
|
{% if tx.type == 'pool' %}<tr class="table-warning">{% else %}<tr>{% endif %}
|
|
<td>{{ tx.timestamp | datestamp }}</td>
|
|
<td>{{ tx.type }}</td>
|
|
<td><a href="https://wownero.club/transaction/{{ tx.txid }}" target="_blank">{{ tx.txid | truncate(12) }}</a></td>
|
|
<td>{% if tx.type == 'out' %}{{ tx.destinations.0.amount / 100000000000 }}{% else %}{{ tx.amount / 100000000000 }}{% endif %} WOW</td>
|
|
<td>{{ tx.confirmations }}</td>
|
|
<td>{{ tx.height }}</td>
|
|
<td>{{ tx.fee / 100000000000 }} WOW</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section2" id="send">
|
|
<div class="container-slim">
|
|
<div class="section-heading text-center">
|
|
<h2>Send</h2>
|
|
{% if current_user.funds_locked %}
|
|
<p>Sending funds is currently locked due to a transfer already in progress. Please try again in a few minutes. Pending transfers:</p>
|
|
<ul>
|
|
{% for tx in txs_queued %}
|
|
<li class="slim small">{{ tx.amount }} - {{ tx.address }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<form method="POST" action="{{ url_for('wallet.send') }}" class="send-form">
|
|
{{ send_form.csrf_token }}
|
|
{% for f in send_form %}
|
|
{% if f.name != 'csrf_token' %}
|
|
<div class="form-group">
|
|
{{ f.label }}
|
|
{{ f }}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<ul>
|
|
{% for field, errors in send_form.errors.items() %}
|
|
<li>{{ send_form[field].label }}: {{ ', '.join(errors) }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<input type="submit" value="Send" class="btn btn-link btn-outline btn-xl">
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% include 'footer.html' %}
|
|
|
|
{% include 'scripts.html' %}
|
|
|
|
</body>
|
|
|
|
</html>
|