File: fields.html

package info (click to toggle)
simpletal 4.1-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 748 kB
  • ctags: 936
  • sloc: python: 5,810; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- Example TAL HTML Template - this is used to gather data -->
<html>
  <head>
  <title tal:content="title">Title</title>
  </head>
  
  <body>
    <h1 tal:content="title">Title</h1>
    <form action="simple-cgi.py">
    <div>
    	Name: <input name="username" tal:attributes="value fieldValues/username"></input>
    		<b tal:condition="missingFields/username">(Please fill in)</b><br>
    		
    	Occupation: <input name="occupation" tal:attributes="value fieldValues/occupation"></input>
    	  <b tal:condition="missingFields/occupation">(Please fill in)</b><br>
    		
    	Age: <input name="age" tal:attributes="value fieldValues/age"></input><br>
    	
    </div>
    <input type="submit" name="submit" value="submit">
    </form>
  </body>
</html>