blob: fd921fe436a5af62774649a49e73443d7d1fb644 (
plain)
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
|
{namespace com.google.phonenumbers.demo.file}
{template file}
{@param rows: list<[id: int, numberStr: string, prettyFormat: string|null, internationalFormat: string|null, error: string|null]>}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/stylesheets/main.css" />
<title>Results generated from phone numbers in the file provided</title>
</head>
<body>
<h2>Results generated from phone numbers in the file provided:</h2>
<table>
<tr>
<th>Id</th>
<th>Raw phone number</th>
<th>Pretty formatting</th>
<th>International format</th>
</tr>
{for $row in $rows}
<tr>
<td>{$row.id}</td>
<td>{$row.numberStr}</td>
{if $row.error == null}
<td>{$row.prettyFormat}</td>
<td>{$row.internationalFormat}</td>
{else}
<td colspan=2>{$row.error}</td>
{/if}
</tr>
{ifempty}
<tr>
<td colspan=4>No data in file detected!</td>
</tr>
{/for}
</table>
</body>
</html>
{/template}
|