Last change
on this file since 2034 was
2034,
checked in by mylan, 14 years ago
|
#172: Fix breakage in plone4
|
File size:
1.1 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 | <div class="field" |
---|
7 | tal:define="hk here/getCaptcha; |
---|
8 | error errors/key|nothing" |
---|
9 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
10 | <input type="hidden" |
---|
11 | name="hashkey" |
---|
12 | tal:attributes="value hk" /> |
---|
13 | <label i18n:translate="enter_word">Enter the word below</label> |
---|
14 | <span class="fieldRequired" title="Required" |
---|
15 | i18n:domain="plone" i18n:attributes="title title_required;" |
---|
16 | i18n:translate="label_required">(Required)</span> |
---|
17 | <div class="formHelp"></div> |
---|
18 | <div tal:content="error">Validation error output</div> |
---|
19 | <input type="text" |
---|
20 | tabindex="" |
---|
21 | name="key" |
---|
22 | size="10" |
---|
23 | value="" |
---|
24 | tal:attributes="tabindex tabindex/next;"/> |
---|
25 | <img tal:attributes="src string:${portal_url}/getCaptchaImage/${hk}" alt="Enter the word"/> |
---|
26 | </div> |
---|
27 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.