source: products/qPloneCaptchas/tags/1.2.1/skins/plone_captchas/prefs_captchas_setup_form.cpt @ 458

Last change on this file since 458 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 8.4 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      i18n:domain="plonecaptchas"
4      metal:use-macro="here/prefs_main_template/macros/master">
5
6<metal:block fill-slot="top_slot"
7             tal:define="dummy python:request.set('disable_border',1)" />
8
9<body>
10
11<div metal:fill-slot="prefs_configlet_main"
12     tal:define="errors python:request.get('controller_state', None).getErrors();">
13
14    <div metal:define-macro="main" i18n:domain="plonecaptchas">
15    <div class="configlet">
16        <h1 i18n:translate="heading_comments_setup">Plone Captchas Setup</h1>
17
18        <a href=""
19           class="link-parent"
20           tal:attributes="href string: $portal_url/plone_control_panel"
21           i18n:translate="label_up_to_plone_setup"
22           i18n:domain="plone">
23           Up to Plone Setup
24        </a>
25
26        <form name="edit_form"
27              action="href"
28              method="post"
29              enctype="multipart/form-data"
30              tal:attributes="action string:${here/getId}/${template/getId}">
31
32            <fieldset>
33                <legend i18n:translate="legend_setup_options">qPloneCaptchas setup options</legend>
34                <div tal:define="ct here/getCaptchaType;">
35                    <input name="static_captchas"
36                           id="use_static_captchas"
37                           type="radio"
38                           value="static"
39                           tal:attributes="checked python:test(ct=='static', 'checked', '')"/>
40                    <label for="use_static_captchas">Use static captchas</label>
41                    <br />
42                    <input name="static_captchas"
43                           id="use_dynamic_captchas"
44                           type="radio"
45                           disabled=""
46                           value="dynamic"
47                           tal:attributes="checked python:test(ct=='dynamic', 'checked', '');
48                                           disabled python:test(context.checkPIL(), '', 'disabled');"/>
49                    <label 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_setup_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="string:${property_id}"
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="string:${property_id}"
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="string:${property_id}"
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="string:${property_id}"
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="string:${property_id}"
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="string:${property_id}"
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:attributes="value"
193                       tal:attributes="tabindex tabindex/next;"/>
194            </div>
195        </form>
196    </div>
197    </div>
198</div>
199</body>
200</html>
Note: See TracBrowser for help on using the repository browser.