source: products/quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/captcha_widget.pt @ 2542

Last change on this file since 2542 was 2542, checked in by mylan, 14 years ago

#216: Fixed #5 issue, added test (from http://plone.org/products/plone-comments/issues/5)

File size: 1.2 KB
Line 
1<div metal:define-macro="captcha"
2     tal:omit-tag=""
3     i18n:domain="quintagroup.captcha.core"
4     tal:define="Iterator python:modules['Products.CMFPlone'].IndexIterator;
5                 tabindex python:Iterator(mainSlot=False);
6                 portal_url here/plone_portal_state/portal_url">
7  <div class="field"
8       tal:define="hk here/getCaptcha;
9                   error errors/key|nothing"
10       tal:attributes="class python:error and 'field error' or 'field'">
11     <input type="hidden"
12            name="hashkey"
13            tal:attributes="value hk" />
14     <label i18n:translate="enter_word">Enter the word below</label>
15     <span class="fieldRequired" title="Required"
16           i18n:domain="plone" i18n:attributes="title title_required;"
17           i18n:translate="label_required">(Required)</span>
18     <div class="formHelp"></div>
19     <div tal:content="error">Validation error output</div>
20     <input type="text"
21            tabindex=""
22            name="key"
23            size="10"
24            value=""
25            tal:attributes="tabindex tabindex/next;"/>
26     <img tal:attributes="src string:${portal_url}/getCaptchaImage/${hk}" alt="Enter the word"/>
27  </div>
28</div>
Note: See TracBrowser for help on using the repository browser.