source: products/quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/example.pt @ 2807

Last change on this file since 2807 was 2807, checked in by mylan, 12 years ago

#195: Updated example form to clarify doctests

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xmlns:metal="http://xml.zope.org/namespaces/metal"
3      xmlns:tal="http://xml.zope.org/namespaces/tal"
4      tal:omit-tag="">
5
6<metal:block use-macro="context/prefs_main_template/macros/master">
7<body>
8
9<div metal:fill-slot="prefs_configlet_main">
10
11    <form action="."
12          tal:attributes="action request/URL;"
13          method="post"
14          enctype="multipart/form-data">
15
16            <tal:block tal:repeat="widget view/widgets">
17
18                <div class="field"
19                     tal:define="description widget/hint;
20                                 error widget/error">
21
22                    <label tal:attributes="for widget/name"
23                           tal:content="widget/label">
24                        label
25                    </label>
26
27                    <div class="fieldErrorBox" tal:content="structure error">
28                      The Error
29                    </div>
30
31                    <div class="widget" tal:content="structure widget">
32                        <input type="text" />
33                    </div>
34                </div>
35
36            </tal:block>
37
38        <div class="visualClear"><!-- --></div>
39
40        <div id="actionsView" class="formControls">
41            <span class="actionButtons"
42                  tal:condition="view/availableActions">
43                <input tal:repeat="action view/actions"
44                       tal:replace="structure action/render" />
45            </span>
46        </div>
47
48    </form>
49
50</div>
51
52</body>
53
54</metal:block>
55</html>
Note: See TracBrowser for help on using the repository browser.