I have a SQLFORM grid with some buttons in the LINKS : <https://lh3.googleusercontent.com/-USA-OMFbJNY/VbKb1nosPcI/AAAAAAAA2Vc/usFqvdAFyiI/s1600/links.png> They are generated thus:
def makeButton( ... ) ... if result == 0: status = 'Up' buttonTitle='Stop' buttonURL='stop' buttonClass='button btn btn-danger' buttonIcon='icon stop icon-stop glyphicon glyphicon-stop' elif result == 2: status = 'Not Built' buttonTitle='Not Built' buttonURL='build' buttonClass='button btn btn-info' buttonIcon='icon play icon-play glyphicon glyphicon-play' else: status = 'Down' buttonTitle='Start' buttonURL='start' buttonClass='button btn btn-success' buttonIcon='icon play icon-play glyphicon glyphicon-play' button = A( SPAN(_class=buttonIcon) ,buttonTitle ,_class=buttonClass ,_title=buttonTitle ,_href=URL("dynamic","startstop", args=[system.id, buttonURL, buttonTitle, db.e5system] , user_signature=True ) ) return button What do I need to add so that when I press my buttons, it (they) change to dim and show 'Working' like with other web2py buttons? Thank you for help -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.