Changeset 2807 in products for quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha
- Timestamp:
- Sep 13, 2010 4:02:42 PM (14 years ago)
- Location:
- quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/example.pt
r2804 r2807 9 9 <div metal:fill-slot="prefs_configlet_main"> 10 10 11 12 13 14 11 <form action="." 12 tal:attributes="action request/URL;" 13 method="post" 14 enctype="multipart/form-data"> 15 15 16 16 <tal:block tal:repeat="widget view/widgets"> 17 17 18 <div class="field" 19 tal:define="description widget/hint; 20 error widget/error"> 21 22 <label tal:attributes="for widget/name" 23 tal:content="widget/label"> 24 label 25 </label> 18 <div class="field" 19 tal:define="description widget/hint; 20 error widget/error"> 26 21 27 <div class="widget" tal:content="structure widget"> 28 <input type="text" />29 </div> 30 </div>22 <label tal:attributes="for widget/name" 23 tal:content="widget/label"> 24 label 25 </label> 31 26 32 </tal:block> 27 <div class="fieldErrorBox" tal:content="structure error"> 28 The Error 29 </div> 33 30 34 <div class="visualClear"><!-- --></div> 31 <div class="widget" tal:content="structure widget"> 32 <input type="text" /> 33 </div> 34 </div> 35 35 36 <div id="actionsView" class="formControls"> 37 <span class="actionButtons" 38 tal:condition="view/availableActions"> 39 <input tal:repeat="action view/actions" 40 tal:replace="structure action/render" /> 41 </span> 42 </div> 36 </tal:block> 43 37 44 </form>38 <div class="visualClear"><!-- --></div> 45 39 46 </div> 40 <div id="actionsView" class="formControls"> 41 <span class="actionButtons" 42 tal:condition="view/availableActions"> 43 <input tal:repeat="action view/actions" 44 tal:replace="structure action/render" /> 45 </span> 46 </div> 47 48 </form> 49 50 </div> 47 51 48 52 </body> -
quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/example.py
r2804 r2807 11 11 12 12 class ICaptchaFormlibFormSchema(Interface): 13 label = TextLine(title=u'Label') 13 label = TextLine(title=u'Label', 14 required=False) 14 15 captcha = Captcha(title=u'Type the code') 15 16
Note: See TracChangeset
for help on using the changeset viewer.