I have no success to customize submit button in crud_create and
crud_update.
I can't redirect crud_update too. Where is my error?
My code:
def add():
form = crud.create(db.address,
message='Row added')
crud.settings.keepvalues = True
crud.messages.submit_button = 'Add'
return dict(form=form)
def update():
form = crud.update(db.address,
request.args[0],
message='Row updated')
crud.messages.submit_button = 'Update/Delete'
crud.settings.update_next = URL(r=request, c='default', f='index')
return dict(form=form)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---