• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{namespace com.google.phonenumbers.demo.inputForm}
2{template inputForm}
3{@param welcomeTitle: string}
4<html>
5  <head>
6    <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
7    <title>{$welcomeTitle}</title>
8  </head>
9  <body>
10    <h2>{$welcomeTitle}</h2>
11    <form action="/phonenumberparser" method="post" accept-charset="UTF-8"
12          enctype="multipart/form-data">
13      <h2>Step 1</h2>
14      <p>
15      Specify a Phone Number: <input type="text" name="phoneNumber" size="25" value="">
16      <p>
17      <b>Or</b> Upload a file containing phone numbers separated by comma.
18      <p>
19      <input type="file" name="numberFile" size="30">
20      <p>
21      <h2>Step 2</h2>
22      <p>
23      Specify a Default Country:
24      <input type="text" name="defaultCountry" size="2">
25          (<a href="http://www.iso.org/iso/english_country_names_and_code_elements">
26          CLDR two-letter region code</a>)
27      <h2>Step 3</h2>
28      <p>
29      Specify a locale for phone number geocoding (Optional, defaults to en):
30      <p>
31      <input type="text" name="languageCode" size="2">-<input type="text" name="regionCode"
32                                                              size="2">
33          (<a href="http://download.oracle.com/javase/6/docs/api/java/util/Locale.html">A valid ISO
34              Language Code and optionally a region to more precisely define the language.</a>)
35      <p></p>
36      <input type="submit" value="Submit">
37      <input type="reset" value="Reset">
38      <p></p>
39      <a href="https://github.com/google/libphonenumber/">Back to libphonenumber</a>
40    </form>
41  </body>
42</html>
43{/template}
44