kasownik/web/webapp/templates/fetch.html

34 lines
1.2 KiB
HTML

{% extends "root.html" %}
{% block title %}brefetch{% endblock %}
{% block content %}
<div class="container">
<h2>Fetch banking data from BRE</h2>
<form method="post" action="/admin/fetch">
{{ form.identifier()|safe }}
{{ form.token()|safe }}
<input type="submit" value="Fetch" />
</form>
<h2>Matching operations</h2>
<a href="/admin/match/auto">Match all easily matchable transfers</a><br />
<a href="/admin/match/manual">Match manually all unmatched transfers</a><br />
<h2>Unmatched transfers - troublesome</h2>
<ul>
{% for t in transfers_unmatched %}
{% if t.get_matchability()[0] > 0 %}
<li>{{ t.title }}</li>
{% endif %}
{% endfor %}
</ul>
<h2>Unmatched transfers - easily matchable</h2>
<ul>
{% for t in transfers_unmatched %}
{% set details = t.get_matchability() %}
{% if details[0] == 0 %}
<li><em>{{ t.title }}</em>: {{ details[2] }} months from {{ details[1].get_next_unpaid() }} for {{ details[1].username }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endblock %}