aboutsummaryrefslogtreecommitdiffstats
path: root/scenario/widgets.html
blob: cb28e78c083e8ef0a80b3eed7d88fe09435264d1 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <script type="text/javascript" src="../lib/underscore/underscore.js"></script>
    <script type="text/javascript" src="../lib/jquery/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../src/angular-bootstrap.js"></script>
    <script type="text/javascript">
      $(document).ready(function(){angular.compile(document).init();});
    </script>
  </head>
  <body>
    <p>
     name: <input type="text" name="name" /> name={{name}} <br/>
    </p>
    <p>
     <input type="radio" name="gender" value="female"/> Female
     <input type="radio" name="gender" value="male"/> Male
     gender={{gender}}
    </p>
    <p>
     <input type="checkbox" name="tea" checked value="on"/> tea={{tea}} <br/>
     <input type="checkbox" name="coffee" value="on"/> coffee={{coffee}} <br/>
    </p>
    <p ng-init="count = 0">
      <form>
       <input type="button" value="button" ng-action="count = count + 1"/>
       <input type="submit" value="submit" ng-action="count = count + 1"/>
       <input type="image" src="" ng-action="count = count + 1"/>
       <a href="#ERROR" ng-action="count=count+1">action</a>
       count={{count}}
      </form>
    </p>
    <p>
      <select name="select">
        <option>A</option>
        <option>B</option>
        <option>C</option>
      </select>
      select={{select}}
    </p>
    <p>
     <select name="multiple" multiple>
       <option>A</option>
       <option>B</option>
       <option>C</option>
     </select>
      multiple={{multiple}}
    </p>
    <p>
      <input type="hidden" name="hidden" value="hiddenValue" />
      Hidden field = {{hidden}}
    </p>
    <p>
      <input type="password" name="password" value="passwordValue" />
      Password field = {{password}}
    </p>
  </body>
 </html>