Changeset 6341 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 11 Jun 2011, 04:59:02 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_edit.pt
r6339 r6341 15 15 tal:define="status view/status" 16 16 tal:condition="status"> 17 18 < divi18n:translate="" tal:content="view/status">17 Form Status: 18 <span i18n:translate="" tal:content="view/status"> 19 19 Form status summary 20 </div> 21 22 <ul class="errors" tal:condition="view/errors"> 23 <li tal:repeat="error view/error_views"> 24 <span tal:replace="structure error">Error Type</span> 25 </li> 26 </ul> 20 </span> 27 21 </div> 28 22 … … 31 25 <tal:block repeat="widget view/widgets"> 32 26 <tr> 33 <td class="label" tal:define="hint widget/hint"> 34 <label tal:condition="python:hint" 35 tal:attributes="for widget/name"> 36 <span class="required" tal:condition="widget/required">* 37 </span><span i18n:translate="" 38 tal:content="widget/label">label</span>: 39 </label> 40 <label tal:condition="python:not hint" 41 tal:attributes="for widget/name"> 42 <span class="required" tal:condition="widget/required">* 43 </span><span i18n:translate="" 44 tal:content="widget/label">label</span>: 27 <td class="label"> 28 <label tal:attributes="for widget/name"> 29 <span class="required" tal:condition="widget/required">*</span> 30 <span i18n:translate="" tal:content="widget/label">label</span>: 45 31 </label> 46 32 </td> 47 33 <td class="field"> 48 < divclass="widget" tal:content="structure widget">34 <span class="widget" tal:content="structure widget"> 49 35 <input type="text" /> 50 </ div>51 < div class="error"tal:condition="widget/error">36 </span> 37 <tal:error tal:condition="widget/error"> 52 38 <span tal:replace="structure widget/error">error</span> 53 </div> 39 </tal:error> 40 <tal:hint tal:condition="widget/hint"> 41 <span class="hint" tal:content="structure widget/hint">hint</span> 42 </tal:hint> 54 43 </td> 55 44 </tr> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6339 r6341 333 333 required = False, 334 334 ) 335 email = schema. TextLine(335 email = schema.ASCIILine( 336 336 title = u'Email', 337 337 required = False, 338 338 ) 339 phone = schema. TextLine(339 phone = schema.Int( 340 340 title = u'Phone', 341 description = u'Enter phone number with country code and without spaces.', 341 342 required = False, 342 343 ) … … 345 346 #default = DEFAULT_PASSPORT_IMAGE_MALE, 346 347 defaultFactory = default_passport_image, 348 description = u'Maximun file size is 20 kB.', 347 349 required = True, 348 350 max_size = 20480,
Note: See TracChangeset for help on using the changeset viewer.