Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (46 sloc) 1.567 kb
<h1>Biodiesel Un-paid Transactions</h1>
[% IF txns.size %]
[% IF !params.printable %]<p><a href="/unpaid?printable=1">Printable version of this page.</a></p>[% END %]
<p>Biodiesel transactions that are currently unpaid as of [% now %]:</p>
<p><strong>Grand Total Un-paid: $[% grand_total %]</strong></p>
<form action="/unpaid/mark-as-paid" method="POST">
<table class="common-table zebra-striped">
<thead>
<tr>
<th>Member</th>
<th>Time</th>
<th>Price</th>
<th>Paid?</th>
<th>Notes</th>
</tr>
</thead>
[% FOREACH member_txns IN txns %]
[% SET total = 0 %]
[% FOREACH txn IN member_txns %]
<tr class="unpaid_txn">
<td align="right"><a href="/members/[% txn.member_id %]">[% txn.member_id %]</a></td>
<td>[% txn.pretty_date %]</td>
<td>$[% txn.price %]</td>
<td><input type="checkbox" name="txns" value="[% txn.txn_id %]" /></td>
<td><input type="text" name="notes-[% txn.txn_id %]" value="[% txn.payment_notes %]" /></td>
[% SET total = total + txn.price %]
</tr>
[% END %]
<tr class="unpaid_total">
<td></td>
<td><strong>Total<strong></td>
<td><strong>$[% total %]</strong></td>
<td></td>
</tr>
[% END %]
</table>
<div class="actions">
<p>
Send an email receipt? <input type="checkbox" name="send_receipt" value="1" />
</p>
<input class="btn primary" type="submit" value="Mark these transactions as paid" />
</div>
</form>
[% ELSE %]
<p>There are no-unpaid transactions at this time.</p>
[% END %]
Jump to Line
Something went wrong with that request. Please try again.