alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

Add "nosubmitbutton" to SQLFORM #150

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From gr...@jingojango.net on January 10, 2011 03:17:37

I needed to make an SQLFORM that I would load dynamically through AJAX and handle display/submit through jQueryUI Dialogs. The standard LOAD() function wasn't cutting it for my needs.

Usage: form=SQLFORM(db.table, nosubmitbutton=True)

Result: submit_record__row not added to form.

This does not impact the readonly variable (tested)

Attachment: nosubmitbutton.diff

Original issue: http://code.google.com/p/web2py/issues/detail?id=152

alfonsodg commented 10 years ago

From massimo....@gmail.com on January 10, 2011 10:16:11

In trunk with a change. instead of nosubmitbutton=True use buttons=[].

The idea is that in the future there may be more tha one button ('submit', 'cancel', 'back' etc.).

alfonsodg commented 10 years ago

From massimo....@gmail.com on January 10, 2011 10:16:22

Status: Fixed