- Timestamp:
- 20 Jan 2012, 10:10:06 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7493 r7494 878 878 return 879 879 880 @action('Get login credentials' )880 @action('Get login credentials', style='primary') 881 881 def register(self, **data): 882 882 if not self.captcha_result.is_valid: -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantregemailsent.pt
r7399 r7494 1 <h2>2 Your registration for application process was successful3 </h2>4 5 1 <div> 6 2 <p> -
main/waeup.sirp/trunk/src/waeup/sirp/widgets/phonewidget.py
r7439 r7494 129 129 """ 130 130 value = self.context.query(self.context.context) 131 # we have to modify the adapter according to our own131 # We have to modify the adapter according to our own 132 132 # 'required' state. Some ugly workaround 133 133 adapter = copy.deepcopy(IPhoneData) … … 138 138 form.FormFields(IPhoneData), 139 139 self.name, value, self.request, adapters=adapters) 140 self.widgets['country'].displayWidth = 3 141 self.widgets['area'].displayWidth = 5 142 self.widgets['extension'].displayWidth = 10 140 # The displayWidth cant'be set 141 # because it is overridden by Bootstrap css classes 142 #self.widgets['country'].displayWidth = 3 143 #self.widgets['area'].displayWidth = 5 144 #self.widgets['extension'].displayWidth = 10 145 # We have to set the cssClass attributes 146 self.widgets['country'].cssClass = 'span2' 147 self.widgets['area'].cssClass = 'span2' 148 self.widgets['extension'].cssClass = 'span3' 149 143 150 return 144 151 -
main/waeup.sirp/trunk/src/waeup/sirp/widgets/tests/test_phonewidget.py
r7440 r7494 126 126 self.assertEqual( 127 127 self.widget(), 128 (u'+ <input class=" textType" id="field.foo.country"'129 u' name="field.foo.country" size=" 3" type="text" value="123" '130 u' />' 131 u' -\n' 132 u'<input class=" textType" id="field.foo.area"'133 u' name="field.foo.area" size=" 5" type="text" value="456" '134 u' />' 135 u' -\n' 136 u'<input class=" textType" id="field.foo.extension"'137 u' name="field.foo.extension" size=" 10" type="text"'128 (u'+ <input class="span2 textType" id="field.foo.country"' 129 u' name="field.foo.country" size="20" type="text" value="123" ' 130 u' />' 131 u' -\n' 132 u'<input class="span2 textType" id="field.foo.area"' 133 u' name="field.foo.area" size="20" type="text" value="456" ' 134 u' />' 135 u' -\n' 136 u'<input class="span3 textType" id="field.foo.extension"' 137 u' name="field.foo.extension" size="20" type="text"' 138 138 u' value="1234567" />\n')) 139 139 return … … 288 288 self.assertEqual( 289 289 self.widget.hidden(), 290 (u'<input class=" hiddenType" id="field.foo.country"'290 (u'<input class="span2 hiddenType" id="field.foo.country"' 291 291 u' name="field.foo.country" type="hidden" value="123" ' 292 292 u' />' 293 293 u'\n' 294 u'<input class=" hiddenType" id="field.foo.area"'294 u'<input class="span2 hiddenType" id="field.foo.area"' 295 295 u' name="field.foo.area" type="hidden" value="456" ' 296 296 u' />' 297 297 u'\n' 298 u'<input class=" hiddenType" id="field.foo.extension"'298 u'<input class="span3 hiddenType" id="field.foo.extension"' 299 299 u' name="field.foo.extension" type="hidden"' 300 300 u' value="1234567" />')) … … 378 378 self.assertEqual( 379 379 widget(), 380 (u'+ <input class=" textType" id="field.foo.country"'381 u' name="field.foo.country" size=" 3" type="text" value="11" '382 u' />' 383 u' -\n' 384 u'<input class=" textType" id="field.foo.area"'385 u' name="field.foo.area" size=" 5" type="text" value="222" '386 u' />' 387 u' -\n' 388 u'<input class=" textType" id="field.foo.extension"'389 u' name="field.foo.extension" size=" 10" type="text"'380 (u'+ <input class="span2 textType" id="field.foo.country"' 381 u' name="field.foo.country" size="20" type="text" value="11" ' 382 u' />' 383 u' -\n' 384 u'<input class="span2 textType" id="field.foo.area"' 385 u' name="field.foo.area" size="20" type="text" value="222" ' 386 u' />' 387 u' -\n' 388 u'<input class="span3 textType" id="field.foo.extension"' 389 u' name="field.foo.extension" size="20" type="text"' 390 390 u' value="3333" />\n')) 391 391 return … … 401 401 self.assertEqual( 402 402 widget(), 403 (u'+ <input class=" textType" id="field.foo.country"'404 u' name="field.foo.country" size=" 3" type="text" value="11" '405 u' />' 406 u' -\n' 407 u'<input class=" textType" id="field.foo.area"'408 u' name="field.foo.area" size=" 5" type="text" value="222" '409 u' />' 410 u' -\n' 411 u'<input class=" textType" id="field.foo.extension"'412 u' name="field.foo.extension" size=" 10" type="text"'403 (u'+ <input class="span2 textType" id="field.foo.country"' 404 u' name="field.foo.country" size="20" type="text" value="11" ' 405 u' />' 406 u' -\n' 407 u'<input class="span2 textType" id="field.foo.area"' 408 u' name="field.foo.area" size="20" type="text" value="222" ' 409 u' />' 410 u' -\n' 411 u'<input class="span3 textType" id="field.foo.extension"' 412 u' name="field.foo.extension" size="20" type="text"' 413 413 u' value="3333" />\n')) 414 414 return … … 485 485 self.assertEqual( 486 486 self.widget(), 487 (u'+ <input class=" textType" id="field.foo.country"'488 u' name="field.foo.country" size=" 3" type="text" value="" '489 u' />' 490 u' -\n' 491 u'<input class=" textType" id="field.foo.area"'492 u' name="field.foo.area" size=" 5" type="text" value="" '493 u' />' 494 u' -\n' 495 u'<input class=" textType" id="field.foo.extension"'496 u' name="field.foo.extension" size=" 10" type="text"'487 (u'+ <input class="span2 textType" id="field.foo.country"' 488 u' name="field.foo.country" size="20" type="text" value="" ' 489 u' />' 490 u' -\n' 491 u'<input class="span2 textType" id="field.foo.area"' 492 u' name="field.foo.area" size="20" type="text" value="" ' 493 u' />' 494 u' -\n' 495 u'<input class="span3 textType" id="field.foo.extension"' 496 u' name="field.foo.extension" size="20" type="text"' 497 497 u' value="" />\n')) 498 498 return
Note: See TracChangeset for help on using the changeset viewer.