79 lines
3.1 KiB
HTML
79 lines
3.1 KiB
HTML
{% extends "default/_layout.html" %}
|
|
|
|
{% block title %}Баланс{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="large-12 columns">
|
|
<h2>Личный кабинет</h2>
|
|
</div>
|
|
<div class="large-12 columns">
|
|
<ul class="inline-list">
|
|
<li><a href="{{ url_for('account.index') }}">Учётная запись</a></li>
|
|
<li><a href="{{ url_for('account.billing') }}">Биллинг</a></li>
|
|
<li><a href="{{ url_for('account.password_update') }}">Смена пароля</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="large-12 columns">
|
|
<h3>Баланс</h3>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="large-6 columns">
|
|
<p>Баланс: {{ user_balance }} рублей</p>
|
|
<hr/>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="large-12 columns">
|
|
<h4>Пополнить</h4>
|
|
</div>
|
|
{% if g.settings['PAY_ROBOKASSA_ENABLED'] == "1" %}
|
|
<form action="{{ url_for('payments.robokassa', action='process') }}" method="post">
|
|
<div class="large-3 columns">
|
|
<img src="{{ url_for('static', filename='images/payment/robokassa.png') }}" style="margin: 10px; width: 150px;" />
|
|
</div>
|
|
<div class="large-6 columns">
|
|
<select name="amount">
|
|
<option value="500">500 рублей</option>
|
|
<option value="1000">1000 рублей</option>
|
|
<option value="2000">2000 рублей</option>
|
|
<option value="5000">5000 рублей</option>
|
|
</select>
|
|
</div>
|
|
<div class="large-3 columns">
|
|
<input type="submit" value="Оплатить" class="button postfix" />
|
|
</div>
|
|
</form>
|
|
{% endif %}
|
|
<div class="large-12 columns">
|
|
<h4>История платежей</h4>
|
|
<table width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Сумма</th>
|
|
<th>Дата</th>
|
|
<th>Статус</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% if history['total'] == 0 %}
|
|
<tr><td colspan="3">Нет записей.</td></tr>
|
|
{% else %}
|
|
{% for record in history['items'] %}
|
|
<tr>
|
|
<td>{{ record['id'] }}</td>
|
|
<td>{{ record['amount'] }}</td>
|
|
<td>{{ record['created'] }}</td>
|
|
<td>{{ record['status'] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|