From 0da6403d869d8b391da4c7c17afb1b8d9dfa7df3 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Wed, 18 Apr 2012 21:20:13 -0500 Subject: [PATCH] grid.create_form --- VERSION | 2 +- gluon/sqlhtml.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 4664ca3e..dc9127fa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-18 17:30:38) dev +Version 1.99.7 (2012-04-18 21:19:43) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index b6b747b4..51b727e6 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1630,6 +1630,10 @@ class SQLFORM(FORM): onvalidation=onvalidation, onsuccess=oncreate) res = DIV(buttons(), create_form, formfooter, _class=_class) + res.create_form = create_form + res.update_form = update_form + res.view_form = view_form + res.search_form = search_form return res elif details and len(request.args)>2 and request.args[-3]=='view': check_authorization() @@ -1641,6 +1645,10 @@ class SQLFORM(FORM): **sqlformargs) res = DIV(buttons(edit=editable, record=record), view_form, formfooter, _class=_class) + res.create_form = create_form + res.update_form = update_form + res.view_form = view_form + res.search_form = search_form return res elif editable and len(request.args)>2 and request.args[-3]=='edit': check_authorization() @@ -1659,6 +1667,10 @@ class SQLFORM(FORM): next=referrer) res = DIV(buttons(view=details, record=record), update_form, formfooter, _class=_class) + res.create_form = create_form + res.update_form = update_form + res.view_form = view_form + res.search_form = search_form return res elif deletable and len(request.args)>2 and request.args[-3]=='delete': check_authorization()