capsul-flask/capsulflask/templates/account-balance.html

109 lines
2.7 KiB
HTML
Raw Permalink Normal View History

{% extends 'base.html' %}
{% block title %}Account Balance{% endblock %}
{% block content %}
2020-05-13 05:28:53 +00:00
<div class="row third-margin">
2020-05-12 05:45:37 +00:00
<h1>Account Balance: ${{ account_balance }}</h1>
</div>
<div class="half-margin">
{% if has_vms and has_payments and warning_text != "" %}
<div class="row">
<pre class="wrap">{{ warning_text }}</pre>
</div>
{% endif %}
2020-05-12 05:45:37 +00:00
<div class="row">
{% if has_payments %}
<div>
2020-05-13 05:28:53 +00:00
<div class="row third-margin">
2020-05-12 05:45:37 +00:00
<h1>Payments</h1>
</div>
<table>
<thead>
<tr>
<th>amount</th>
<th>date</th>
</tr>
</thead>
<tbody>
{% for payment in payments %}
<tr>
<td class="{{ payment['class_name'] }}">${{ payment["dollars"] }}</td>
<td class="{{ payment['class_name'] }}">{{ payment["created"] }}</td>
2020-05-12 05:45:37 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
<ul>
<li>
<h1>PAYMENT OPTIONS</h1>
<ul>
<li>
<a href="/payment/stripe">Add funds with Credit/Debit (stripe)</a>
2020-05-12 05:45:37 +00:00
<ul><li>notice: stripe will load nonfree javascript </li></ul>
</li>
{% if btcpay_enabled %}
{% if btcpay_is_working %}
<li><a href="/payment/btcpay">Add funds with Bitcoin/Litecoin/Monero (btcpay)</a></li>
{% else %}
<li>
<span class="disabled">Add funds with Bitcoin/Litecoin/Monero (btcpay)</span>
<ul>
<li>
<span class="error"> ERROR: the BTCPay server cannot be reached</span>
</li>
</ul>
</li>
{% endif %}
{% endif %}
2020-05-12 05:45:37 +00:00
<li>Cash: email <a href="mailto:treasurer@cyberia.club">treasurer@cyberia.club</a></li>
2020-05-12 05:45:37 +00:00
</ul>
</li>
</ul>
</div>
{% if has_vms %}
2020-05-13 05:28:53 +00:00
<div class="row third-margin">
2020-05-12 05:45:37 +00:00
<h1>Capsuls Billed</h1>
</div>
2020-05-13 05:28:53 +00:00
<div class="row">
<table class="small">
<thead>
2020-05-12 05:45:37 +00:00
<tr>
2020-05-13 05:28:53 +00:00
<th>id</th>
<th>created</th>
<th>deleted</th>
<th>$/month</th>
<th>months</th>
<th>$ billed</th>
2020-05-12 05:45:37 +00:00
</tr>
2020-05-13 05:28:53 +00:00
</thead>
<tbody>
{% for vm in vms_billed %}
<tr>
<td>{{ vm["id"] }}</td>
<td>{{ vm["created"] }}</td>
<td>{{ vm["deleted"] }}</td>
<td>${{ vm["dollars_per_month"] }}</td>
<td>{{ vm["months"] }}</td>
<td>${{ vm["dollars"] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
2020-05-12 05:45:37 +00:00
{% endif %}
</div>
{% endblock %}
{% block pagesource %}/templates/create-capsul.html{% endblock %}