Issue 1418:Enhancement - SQLFORM.grid param. to change selectable option's submit button text, thanks bpeterso2013
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.4.5-stable+timestamp.2013.04.01.14.35.30
|
||||
Version 2.4.5-stable+timestamp.2013.04.01.14.38.34
|
||||
|
||||
@@ -1769,6 +1769,7 @@ class SQLFORM(FORM):
|
||||
createargs={},
|
||||
editargs={},
|
||||
viewargs={},
|
||||
selectable_submit_button='Submit',
|
||||
buttons_placement = 'right',
|
||||
links_placement = 'right',
|
||||
noconfirm=False
|
||||
@@ -2379,7 +2380,8 @@ class SQLFORM(FORM):
|
||||
htmltable.append(tbody)
|
||||
htmltable = DIV(htmltable, _style='width:100%;overflow-x:auto')
|
||||
if selectable:
|
||||
htmltable = FORM(htmltable, INPUT(_type="submit"))
|
||||
htmltable = FORM(htmltable, INPUT(
|
||||
_type="submit", _value=T(selectable_submit_button)))
|
||||
if htmltable.process(formname=formname).accepted:
|
||||
htmltable.vars.records = htmltable.vars.records or []
|
||||
htmltable.vars.records = htmltable.vars.records if type(htmltable.vars.records) == list else [htmltable.vars.records]
|
||||
|
||||
Reference in New Issue
Block a user