-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
51 lines (51 loc) · 1.19 KB
/
template.html
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
<!DOCTYPE html>
<html>
<head>
<title>Multiple Intransit Messages Report</title>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
th {
background-color: #91D6AC;
}
tr:nth-child(odd) {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<h1>Multiple Intransit Messages Report</h1>
<table>
<tr>
<th>#</th>
<th>Item Record Number</th>
<th>Item Barcode</th>
<th>Messages</th>
</tr>
<!-- Assuming `results` is a variable that contains the query result -->
<!-- Each `result` is a dictionary with keys 'item_record_num', 'item_barcode', 'messages' -->
<!-- The 'messages' value is a list of messages for the item -->
{% for result in results %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ result['item_record_num'] }}</td>
<td>{{ result['item_barcode'] }}</td>
<td>
<ul>
{% for message in result['messages'] %}
<li>{{ message }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</table>
</body>
</html>