Changeset 744
- Timestamp:
- 01/11/07 09:24:10
- Files:
-
- qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.1.2/formmailer.cpt (modified) (8 diffs)
- qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.1.2/formmailer_portlet.cpt (modified) (5 diffs)
- qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.5/formmailer.cpt (modified) (9 diffs)
- qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.5/formmailer_portlet.cpt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.1.2/formmailer.cpt
r743 r744 9 9 <head><title></title></head> 10 10 <body> 11 12 11 <div metal:fill-slot="main" 13 tal:define="form here/form; 12 tal:define="script here/runBeforeScriptIfNeeded; 13 form here/form; 14 14 title python: test(form.title, form.title, 'unknown'); 15 15 method python:form.method; … … 17 17 fname string:${title}_form; 18 18 tid template/id; 19 tabindex python:Iterator(pos=40000)"> 20 19 tabindex tabindex|python:Iterator(pos=30000)"> 21 20 <h1 tal:content="here/title_or_id" class="documentFirstHeading"> 22 21 Title or id 23 22 </h1> 24 25 23 <div metal:use-macro="here/document_actions/macros/document_actions"> 26 24 Document actions (print, sendto etc) 27 25 </div> 28 29 26 <div class="documentDescription" 30 27 tal:content="here/Description"> 31 28 description 32 29 </div> 33 34 30 <div tal:condition="python:here.isTransformable('form_pre')" 35 31 tal:content="structure python:here.getFormPre()"> 36 32 Prepended text. 37 33 </div> 38 39 34 <div id="formmailer"> 40 35 <form action="" … … 45 40 enctype form/enctype"> 46 41 42 <div tal:condition="errors" class="portalMessage">Please correct the errors indicated below.</div> 47 43 <tal:repeat tal:repeat="group groups" > 48 44 <fieldset tal:omit-tag="python:group=='Default'"> 49 50 45 <legend tal:content="group" 51 46 tal:condition="python:group!='Default'" … … 53 48 Legend 54 49 </legend> 55 56 50 <tal:repeat define="fields python:form.get_fields_in_group(group)" 57 51 repeat="field fields"> 58 59 52 <div class="field" 60 53 tal:condition="not:field/hidden" … … 63 56 tal:attributes="class python:test(error, 'field error', 'field'); 64 57 id python:'pfm_'+field_id;"> 65 66 58 <label tal:content="field/title" 59 tal:attributes="for field_id" 67 60 i18n:translate="">Label</label> 68 69 61 <span tal:condition="field/is_required" 70 62 class="fieldRequired" … … 73 65 i18n:attributes="title" 74 66 i18n:translate="label_required">(Required)</span> 75 76 67 <div class="formHelp" 77 68 tal:define="desc python:field['description']" 78 69 tal:content="desc" 79 70 i18n:translate="">Help</div> 80 81 71 <div tal:content="error" 82 72 tal:condition="error" … … 84 74 Validation error output 85 75 </div> 86 87 <div tal:condition="python: field.id in ['email', 'fullname']" 88 tal:define="initvalue python:test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),'') or request.get(field.id,''); 89 input python:field.render(REQUEST=request, value = initvalue )" 90 tal:replace="structure input" 91 tal:attributes="tabindex tabindex/next;"> 76 <div tal:define="initvalue python:request.get(field.id, None); 77 input python:field.render(REQUEST=request, value=initvalue)" 78 tal:replace="structure input"> 92 79 </div> 93 <div tal:condition="python: not field.id in ['email', 'fullname']"94 tal:define="input python:field.render(REQUEST=request)"95 tal:replace="structure input"96 tal:attributes="tabindex tabindex/next;">97 </div>98 99 80 </div> 100 101 81 <div tal:condition="field/hidden" 102 tal:define="initvalue python: test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),'');103 input python:field.render(REQUEST=request, value=initvalue )"82 tal:define="initvalue python:request.get(field.id, None); 83 input python:field.render(REQUEST=request, value=initvalue)" 104 84 tal:replace="structure input"> 105 85 </div> 106 107 86 </tal:repeat> 108 87 </fieldset> … … 116 95 type python:button[2] or 'submit'; 117 96 class python:button[3] or 'context'; 118 id python:'pfm_button_%s' % button[1] or button[0]; 119 tabindex tabindex/next;" 97 id python:'pfm_button_%s' % button[1] or button[0];" 120 98 class="context"/> 121 99 </div> 122 123 100 <input type="hidden" name="form.submitted" value="1" /> 124 101 <input type="hidden" name="uf_formid" tal:attributes="value form/id" /> 125 126 102 </form> 127 103 </div> 128 129 104 <div tal:condition="python:here.isTransformable('form_post')" 130 105 tal:content="structure python:here.getFormPost()"> 131 106 Appended text. 132 107 </div> 133 134 108 </div> 135 109 </body> qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.1.2/formmailer_portlet.cpt
r743 r744 9 9 i18n:domain="pfm" 10 10 tal:omit-tag="" > 11 <d lclass="portlet"11 <div class="portlet" 12 12 id="portlet-formmailer" 13 13 tal:define="pfm python:here.pfmbox; 14 14 translatable python:hasattr(portal,'portal_languages') and portal.portal_languages.isTranslatable(pfm); 15 15 pfm python:translatable and pfm.getTranslation() or pfm; 16 form python:pfm.form" 17 tal:condition="python: here!=pfm">18 < dt class="portletHeader" tal:content="pfm/title_or_id">Title or Id</dt>19 <d d class="portletItem plain"16 form python:pfm.form"> 17 <div class="padding"> 18 <h5 tal:content="pfm/title_or_id">Title or Id</h5> 19 <div class="portletBody" 20 20 tal:define="title python: test(form.title, form.title, 'unknown'); 21 21 method python:form.method; … … 24 24 tid template/id; 25 25 tabindex python:Iterator()"> 26 <div class="portletContent odd"> 26 27 <div tal:condition="python:form.isTransformable('form_pre')" 27 28 tal:content="structure python:form.getFormPre()"> … … 52 53 i18n:domain="plone" 53 54 i18n:attributes="title" 54 i18n:translate="label_required">( *)</span>55 i18n:translate="label_required">(Required)</span> 55 56 <div class="formHelp" 56 57 tal:define="desc python:field['description']" … … 58 59 i18n:translate="">Help</div> 59 60 <div tal:condition="python: field.id in ['email', 'fullname']" 60 tal:define="initvalue python:test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),'') or request.get(field.id,'');61 tal:define="initvalue python:test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),''); 61 62 input python:field.render(REQUEST=request, value = initvalue )" 62 63 tal:replace="structure input" … … 94 95 Appended text 95 96 </div> 96 </dd> 97 </dl> 97 </div> 98 </div> 99 </div> 100 </div> 98 101 </div> 99 102 </body> qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.5/formmailer.cpt
r743 r744 9 9 <head><title></title></head> 10 10 <body> 11 12 11 <div metal:fill-slot="main" 13 tal:define="form here/form; 12 tal:define="script here/runBeforeScriptIfNeeded; 13 form here/form; 14 14 title python: test(form.title, form.title, 'unknown'); 15 15 method python:form.method; … … 17 17 fname string:${title}_form; 18 18 tid template/id; 19 tabindex python:Iterator(pos=40000)">19 tabindex tabindex|python:Iterator(pos=30000)"> 20 20 21 21 <h1 tal:content="here/title_or_id" class="documentFirstHeading"> … … 26 26 Document actions (print, sendto etc) 27 27 </div> 28 29 28 <div class="documentDescription" 30 29 tal:content="here/Description"> 31 30 description 32 31 </div> 33 34 32 <div tal:condition="python:here.isTransformable('form_pre')" 35 33 tal:content="structure python:here.getFormPre()"> 36 34 Prepended text. 37 35 </div> 38 39 36 <div id="formmailer"> 40 37 <form action="" … … 44 41 method form/method; 45 42 enctype form/enctype"> 46 43 <div tal:condition="errors" class="portalMessage">Please correct the errors indicated below.</div> 47 44 <tal:repeat tal:repeat="group groups" > 48 45 <fieldset tal:omit-tag="python:group=='Default'"> 49 50 46 <legend tal:content="group" 51 47 tal:condition="python:group!='Default'" … … 53 49 Legend 54 50 </legend> 55 56 51 <tal:repeat define="fields python:form.get_fields_in_group(group)" 57 52 repeat="field fields"> 58 59 53 <div class="field" 60 54 tal:condition="not:field/hidden" … … 63 57 tal:attributes="class python:test(error, 'field error', 'field'); 64 58 id python:'pfm_'+field_id;"> 65 66 59 <label tal:content="field/title" 60 tal:attributes="for field_id" 67 61 i18n:translate="">Label</label> 68 69 62 <span tal:condition="field/is_required" 70 63 class="fieldRequired" … … 73 66 i18n:attributes="title" 74 67 i18n:translate="label_required">(Required)</span> 75 76 68 <div class="formHelp" 77 69 tal:define="desc python:field['description']" 78 70 tal:content="desc" 79 71 i18n:translate="">Help</div> 80 81 72 <div tal:content="error" 82 73 tal:condition="error" … … 84 75 Validation error output 85 76 </div> 86 87 <div tal:condition="python: field.id in ['email', 'fullname']" 88 tal:define="initvalue python:test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),'') or request.get(field.id,''); 89 input python:field.render(REQUEST=request, value = initvalue )" 90 tal:replace="structure input" 91 tal:attributes="tabindex tabindex/next;"> 77 <div tal:define="initvalue python:request.get(field.id, None); 78 input python:field.render(REQUEST=request, value=initvalue)" 79 tal:replace="structure input"> 92 80 </div> 93 <div tal:condition="python: not field.id in ['email', 'fullname']"94 tal:define="input python:field.render(REQUEST=request)"95 tal:replace="structure input"96 tal:attributes="tabindex tabindex/next;">97 </div>98 99 81 </div> 100 101 82 <div tal:condition="field/hidden" 102 tal:define="initvalue python: test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),'');103 input python:field.render(REQUEST=request, value=initvalue )"83 tal:define="initvalue python:request.get(field.id, None); 84 input python:field.render(REQUEST=request, value=initvalue)" 104 85 tal:replace="structure input"> 105 86 </div> 106 107 87 </tal:repeat> 108 88 </fieldset> … … 116 96 type python:button[2] or 'submit'; 117 97 class python:button[3] or 'context'; 118 id python:'pfm_button_%s' % button[1] or button[0]; 119 tabindex tabindex/next;" 98 id python:'pfm_button_%s' % button[1] or button[0];" 120 99 class="context"/> 121 100 </div> 122 123 101 <input type="hidden" name="form.submitted" value="1" /> 124 102 <input type="hidden" name="uf_formid" tal:attributes="value form/id" /> 125 126 103 </form> 127 104 </div> 128 129 105 <div tal:condition="python:here.isTransformable('form_post')" 130 106 tal:content="structure python:here.getFormPost()"> 131 107 Appended text. 132 108 </div> 133 134 109 </div> 135 110 </body> qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.5/formmailer_portlet.cpt
r743 r744 9 9 i18n:domain="pfm" 10 10 tal:omit-tag="" > 11 <d lclass="portlet"11 <div class="portlet" 12 12 id="portlet-formmailer" 13 13 tal:define="pfm python:here.pfmbox; 14 14 translatable python:hasattr(portal,'portal_languages') and portal.portal_languages.isTranslatable(pfm); 15 15 pfm python:translatable and pfm.getTranslation() or pfm; 16 form python:pfm.form" 17 tal:condition="python: here!=pfm">18 < dt class="portletHeader" tal:content="pfm/title_or_id">Title or Id</dt>19 <d d class="portletItem plain"16 form python:pfm.form"> 17 <div class="padding"> 18 <h5 tal:content="pfm/title_or_id">Title or Id</h5> 19 <div class="portletBody" 20 20 tal:define="title python: test(form.title, form.title, 'unknown'); 21 21 method python:form.method; … … 24 24 tid template/id; 25 25 tabindex python:Iterator()"> 26 <div class="portletContent odd"> 26 27 <div tal:condition="python:form.isTransformable('form_pre')" 27 28 tal:content="structure python:form.getFormPre()"> … … 52 53 i18n:domain="plone" 53 54 i18n:attributes="title" 54 i18n:translate="label_required">( *)</span>55 i18n:translate="label_required">(Required)</span> 55 56 <div class="formHelp" 56 57 tal:define="desc python:field['description']" … … 58 59 i18n:translate="">Help</div> 59 60 <div tal:condition="python: field.id in ['email', 'fullname']" 60 tal:define="initvalue python:test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),'') or request.get(field.id,'');61 tal:define="initvalue python:test(field.id in ['email', 'fullname'],member.getProperty(field.id, ''),''); 61 62 input python:field.render(REQUEST=request, value = initvalue )" 62 63 tal:replace="structure input" … … 94 95 Appended text 95 96 </div> 96 </dd> 97 </dl> 97 </div> 98 </div> 99 </div> 100 </div> 98 101 </div> 99 102 </body>
