DOCTYPE html html head head body select name biller id billerFilter op

 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
<!DOCTYPE html>
<html>
<head></head>
<body>
<select name="biller" id="billerFilter">
<option value="no-filter">No filter</option>
<#list model["billers"] as biller>
<option value="${biller.id}">${biller.companyName}</option>
</#list>
</select>
<select name="customer" id="customerFilter">
<option value="no-filter">No filter</option>
<#list model["customers"] as customer>
<option value="${customer.id}">${customer.firstName} ${customer.lastName}</option>
</#list>
</select>
<table class="datatable">
<tbody>
<tr>
<th>Date</th>
<th>Customer</th>
<th>Biller</th>
<th>Account</th>
<th>Amount</th>
</tr>
<#list model["payments"] as payment>
<#assign customer = payment.customer>
<#assign biller = payment.biller>
<#if
<tr>
<td>${payment.date?datetime}</td>
<td>${customer.firstName} ${customer.lastName}</td>
<td>${biller.companyName}</td>
<td>${payment.account}</td>
<td>${payment.amount}</td>
</tr>
</#list>
</tbody>
</table>
</body>
</html>