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

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

Removed unnecessary tag

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