source: products/quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/plone_captchas/prefs_captchas_setup_form.cpt @ 1871

Last change on this file since 1871 was 1871, checked in by liebster, 14 years ago

Revert 2726 to 2589 commits for tagging plone-3 compatible version

File size: 8.4 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
2      xmlns:tal="http://xml.zope.org/namespaces/tal"
3      xmlns:metal="http://xml.zope.org/namespaces/metal"
4      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5      i18n:domain="quintagroup.plonecaptchas"
6      metal:use-macro="here/prefs_main_template/macros/master">
7
8<metal:block fill-slot="top_slot"
9             tal:define="dummy python:request.set('disable_border',1)" />
10
11<body>
12
13<div metal:fill-slot="prefs_configlet_main"
14     tal:define="errors python:request.get('controller_state', None).getErrors();">
15
16    <div metal:define-macro="main">
17    <div class="configlet">
18        <h1 i18n:translate="heading_comments_setup">Plone Captchas Setup</h1>
19
20        <a href=""
21           class="link-parent"
22           tal:attributes="href string: $portal_url/plone_control_panel"
23           i18n:translate="label_up_to_plone_setup"
24           i18n:domain="plone">
25           Up to Plone Setup
26        </a>
27
28        <form name="edit_form"
29              action="href"
30              method="post"
31              enctype="multipart/form-data"
32              tal:attributes="action string:${here/getId}/${template/getId}">
33
34            <fieldset>
35                <legend i18n:translate="legend_setup_options">Plone Captchas setup options</legend>
36                <div tal:define="ct here/getCaptchaType;">
37                    <input name="static_captchas"
38                           id="use_static_captchas"
39                           type="radio"
40                           value="static"
41                           tal:attributes="checked python:test(ct=='static', 'checked', '')"/>
42                    <label i18n:translate="use_static_captchas" for="use_static_captchas">Use static captchas</label>
43                    <br />
44                    <input name="static_captchas"
45                           id="use_dynamic_captchas"
46                           type="radio"
47                           value="dynamic"
48                           tal:attributes="checked python:test(ct=='dynamic', 'checked', '');"/>
49                    <label i18n:translate="use_dynamic_captchas" for="use_dynamic_captchas">Use dynamic captchas</label>
50                </div>
51            </fieldset>
52
53            <fieldset tal:define="props_sheet here/portal_properties/qPloneCaptchas">
54                <legend i18n:translate="legend_dynamic_captchas_options">Dynamic captchas image setup options</legend>
55
56                <div class="field"
57                     tal:define="property_id string:image_size;
58                                 prop_value python:props_sheet.getProperty(property_id, None);"
59                     tal:condition="python:props_sheet.hasProperty(property_id)">
60
61                    <input type="text"
62                           name=""
63                           id=""
64                           tabindex =""
65                           tal:attributes="name property_id;
66                                           id property_id;
67                                           value prop_value;
68                                           tabindex tabindex/next;"/>
69
70                    <label i18n:translate=""
71                           for=""
72                           tal:attributes="for string:${property_id}">
73                           Font size
74                    </label>
75                </div>
76
77                <div class="field"
78                     tal:define="property_id string:background;
79                                 prop_value python:props_sheet.getProperty(property_id, None);"
80                     tal:condition="python:props_sheet.hasProperty(property_id)">
81
82                    <input type="text"
83                           name=""
84                           id=""
85                           tabindex =""
86                           tal:attributes="name property_id;
87                                           id property_id;
88                                           value prop_value;
89                                           tabindex tabindex/next;"/>
90
91                    <label i18n:translate=""
92                           for=""
93                           tal:attributes="for string:${property_id}">
94                           Background
95                    </label>
96                </div>
97
98                <div class="field"
99                     tal:define="property_id string:font_color;
100                                 prop_value python:props_sheet.getProperty(property_id, None);"
101                     tal:condition="python:props_sheet.hasProperty(property_id)">
102
103                    <input type="text"
104                           name=""
105                           id=""
106                           tabindex =""
107                           tal:attributes="name property_id;
108                                           id property_id;
109                                           value prop_value;
110                                           tabindex tabindex/next;"/>
111
112                    <label i18n:translate=""
113                           for=""
114                           tal:attributes="for string:${property_id}">
115                           Font color
116                    </label>
117                </div>
118
119                <div class="field"
120                     tal:define="property_id string:period;
121                                 prop_value python:props_sheet.getProperty(property_id, None);"
122                     tal:condition="python:props_sheet.hasProperty(property_id)">
123
124                    <input type="text"
125                           name=""
126                           id=""
127                           tabindex =""
128                           tal:attributes="name property_id;
129                                           id property_id;
130                                           value prop_value;
131                                           tabindex tabindex/next;"/>
132
133                    <label i18n:translate=""
134                           for=""
135                           tal:attributes="for string:${property_id}">
136                           Period
137                    </label>
138                </div>
139
140                <div class="field"
141                     tal:define="property_id string:amplitude;
142                                 prop_value python:props_sheet.getProperty(property_id, None);"
143                     tal:condition="python:props_sheet.hasProperty(property_id)">
144
145                    <input type="text"
146                           name=""
147                           id=""
148                           tabindex =""
149                           tal:attributes="name property_id;
150                                           id property_id;
151                                           value prop_value;
152                                           tabindex tabindex/next;"/>
153
154                    <label i18n:translate=""
155                           for=""
156                           tal:attributes="for string:${property_id}">
157                           Amplitude
158                    </label>
159                </div>
160
161                <div class="field"
162                     tal:define="property_id string:random_params;
163                                 prop_value python:props_sheet.getProperty(property_id, None);"
164                     tal:condition="python:props_sheet.hasProperty(property_id)">
165
166                    <input type="checkbox"
167                           name=""
168                           id=""
169                           tabindex =""
170                           tal:attributes="name property_id;
171                                           id property_id;
172                                           value prop_value;
173                                           tabindex tabindex/next;
174                                           checked prop_value"/>
175
176                    <label i18n:translate=""
177                           for=""
178                           tal:attributes="for string:${property_id}">
179                           Random values
180                    </label>
181                </div>
182
183            </fieldset>
184
185            <div class="formControls">
186                <input type="hidden" name="form.submitted" value="1" />
187                <input class="context"
188                       tabindex=""
189                       type="submit"
190                       name="form.button.form_submit"
191                       value="Save"
192                       i18n:domain="plone"
193                       i18n:attributes="value"
194                       tal:attributes="tabindex tabindex/next;"/>
195            </div>
196        </form>
197    </div>
198    </div>
199</div>
200</body>
201</html>
Note: See TracBrowser for help on using the repository browser.