• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{namespace com.google.phonenumbers.demo.file}
2{template file}
3 {@param rows: list<[id: int, numberStr: string, prettyFormat: string|null, internationalFormat: string|null, error: string|null]>}
4
5<!DOCTYPE html>
6<html lang="en">
7<head>
8  <link rel="stylesheet" href="/stylesheets/main.css" />
9  <title>Results generated from phone numbers in the file provided</title>
10</head>
11<body>
12
13<h2>Results generated from phone numbers in the file provided:</h2>
14
15<table>
16  <tr>
17    <th>Id</th>
18    <th>Raw phone number</th>
19    <th>Pretty formatting</th>
20    <th>International format</th>
21  </tr>
22  {for $row in $rows}
23  <tr>
24      <td>{$row.id}</td>
25      <td>{$row.numberStr}</td>
26    {if $row.error == null}
27      <td>{$row.prettyFormat}</td>
28      <td>{$row.internationalFormat}</td>
29    {else}
30      <td colspan=2>{$row.error}</td>
31    {/if}
32  </tr>
33  {ifempty}
34  <tr>
35   <td colspan=4>No data in file detected!</td>
36  </tr>
37  {/for}
38
39
40</table>
41
42</body>
43</html>
44{/template}