To change the value of a button, this should work:

form.element(_type='submit')['_value']='Login'

To add the info button:

form[0][-1][1].append(INPUT(_type="button",_value="Info",_onclick="document.location='%s'"
 
%URL('function')))

To add the classes:

form.element(_type='submit')['_class']='btn btn-primary'
form.element(_type='button')['_class']='btn btn-info'


Annet

Reply via email to