Added categories and Filter widget

This commit is contained in:
Florian "flowdy" Heß
2017-01-29 15:57:34 +01:00
parent 6f19437901
commit d7db9a2eb1
23 changed files with 167 additions and 40 deletions

View File

@@ -14,3 +14,5 @@
</td><td class="number"><%== money $hr->debit %></td><td class="number"><%== money $hr->credit %></td><td><%= $hr->note %></td></tr>
% }
</table>
%= include 'filter-widget'

View File

@@ -7,7 +7,7 @@
% my $inter_header = begin
% my $group = shift;
<tr><th colspan="11"><%= $group || 'Club management accounts' %></th>
<th colspan="2"><a href="/debit?group=<%= $group %>"><img class="icon" src="/add-debit.svg" alt="Charge">all</a></th></tr>
<th colspan="2"><a href="/debit?group=<%= $group %>"><img class="icon" src="/add-debit.svg" alt="Charge"> all at once</a></th></tr>
% end
% while ( my $account = $accounts->next ) {
% my $bal = $account->balance;

View File

@@ -1,12 +1,12 @@
% title 'Make transfers for ' . $account;
<p>Check at least one item of each table that belong together.</p>
<p>Check at least one item of both tables. Make sure they correspond in regard to their purposes. <em><strong>Caution:</strong> When you do not check any items in either table, this effectively is to check all in it!</em></p>
<form method="post">
<h2>Available credits</h2>
<p>Check credits you want to <strong>spend for the arrear(s) below</strong> with.</p>
<p>Check credits you want to <strong>spend for the arrear(s) below</strong>:</p>
<table>
<tr><th>?</th><th>date</th><th>purpose</th><th>to spend</th></tr>