PageRenderTime 26ms CodeModel.GetById 17ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/sitebricks-acceptance-tests/src/main/resources/Forms.html

http://github.com/dhanji/sitebricks
HTML | 88 lines | 56 code | 17 blank | 15 comment | 0 complexity | 8141e509f50eb223f570038eac26aab3 MD5 | raw file
 1<html>
 2<!--
 3
 4
 5
 6Design by Free CSS Templates
 7http://www.freecsstemplates.org
 8Released for free under a Creative Commons Attribution 2.5 License
 9
10-->
11<head>
12  <link href="default.css" rel="stylesheet" type="text/css"/>
13</head>
14
15<body>
16<!-- start header -->
17<div id="header">
18  <div id="logo">
19    <h1>Sitebricks</h1>
20
21    <h2>a fast, light web framework from Google</h2>
22  </div>
23  <div id="menu">
24    <ul>
25      <li class="active"><a href="http://code.google.com/p/google-sitebricks">Google Sitebricks</a>
26      </li>
27
28      <li><a href="http://google-sitebricks.googlecode.com/svn/trunk">source</a></li>
29      <li><a href="http://code.google.com/p/google-sitebricks/wiki/list">doc</a></li>
30      <li><a href="http://code.google.com/p/google-guice">guice</a></li>
31    </ul>
32  </div>
33</div>
34
35<div id="page">
36  <!-- start content -->
37  <div id="content">
38    <div class="post">
39      <h1 class="title">examples</h1>
40
41      <div class="entry">
42
43        The following demonstrates forms and binding to page object properties.
44        <br/><br/>
45
46        <form method="post">
47
48          <input name="text" type="text" value="${text}"/>
49
50          <br/>
51          <br/>
52          <!-- Example of list binding -->
53          Name some autobots:
54          <input name="autobots" type="text" value=""/><br/>
55          <input name="autobots" type="text" value=""/><br/>
56          <input name="autobots" type="text" value=""/><br/>
57
58          <!--@Choose(from=autobots, bind=chosen)-->
59          <!--<select>$ {chosen}</select>-->
60
61          <input id="send" type="submit" value="send"/>
62        </form>
63
64        <br/><br/><br/>
65        Bound:
66        <p id="boundText">
67          textfield: ${text}
68        </p>
69
70        <p id="boundAutobots">
71          autobots: ${autobots}
72        </p>
73
74        <p>
75          <!--choose: $ {chosen}-->
76        </p>
77      </div>
78
79
80      <div class="meta">
81        <p class="byline">Google Sitebricks.</p>
82      </div>
83    </div>
84  </div>
85</div>
86
87</body>
88</html>