-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeneficiaries__verify.tpl
81 lines (71 loc) · 2.58 KB
/
beneficiaries__verify.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{*
* Confirm beneficiary payments
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2014-2016 Jacques Marneweck. All rights strictly reserved.
*}
{include file="header.tpl" title="Confirm Beneficiaries Payments Page" nav="beneficiaries"}
<div>
<h2 class="page-header">Confirm Beneficiary Payments</h2>
</div>
{include file="_partials/errors.tpl"}
<div>
<h3>Paying From:</h3>
<table class="table table-bordered">
<thead>
<tr>
<th>Account Number</th>
<th>Description</th>
<th>Available Balance</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$account.account_number}</td>
<td>{$account.description|escape}</td>
<td>R {($account.balance/100)|string_format:"%.2f"}</td>
</tr>
</tbody>
</table>
<h3>Paying To:</h3>
<form method="post" accept-charset="UTF-8">
<input name="utf8" type="hidden" value="✓" />
{include file="_partials/csrf.tpl"}
<input type="hidden" name="step" value="confirmed" />
<input type="hidden" name="source" value="{$source}" />
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Account Name</th>
<th>Your Reference</th>
<th>Their Reference</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
{foreach $beneficiaries item=row}
<tr>
<td>{$row.name|escape} <div class="pull-right">{$row.account_number}</td></td>
<td><input type="hidden" name="beneficiary[]" value="{$row.id}" /><input type="hidden" name="reference1[]" value="{$row.reference1|escape}">{$row.reference1|escape}</td>
<td><input type="hidden" name="reference2[]" value="{$row.reference2|escape}">{$row.reference2|escape}</td>
<td><input type="hidden" name="amount[]" value="{($row.amount/100)|string_format:"%.2f"}">R {($row.amount/100)|string_format:"%.2f"}</td>
</tr>
{/foreach}
<tr>
<td> </td>
<td> </td>
<td><div class="pull-right">Total:</div></td>
<td>R {($total/100)|string_format:"%.2f"}</td>
</tr>
</tbody>
</table>
<div class="pull-right">
<input data-disable-with="Processing ..." type="submit" class="btn btn-primary" value="Confirm Payments" />
</div>
</form>
<p class="clearfix"> </td>
</div>
{include file="footer.tpl"}