form.custom.delete

This commit is contained in:
mdipierro
2013-01-09 11:13:05 -06:00
parent 45e8e20eae
commit f84ac09e31
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.1-alpha.2+timestamp.2013.01.09.10.44.15
Version 2.4.1-alpha.2+timestamp.2013.01.09.11.12.16
+3 -2
View File
@@ -1150,7 +1150,7 @@ class SQLFORM(FORM):
# </block>
# when deletable, add delete? checkbox
self.custom.deletable = ''
self.custom.delete = self.custom.deletable = ''
if record and deletable:
#add secondary css class for cascade delete warning
css = 'delete'
@@ -1172,7 +1172,8 @@ class SQLFORM(FORM):
_id=self.FIELDKEY_DELETE_RECORD + SQLFORM.ID_LABEL_SUFFIX),
widget,
col3.get(self.FIELDKEY_DELETE_RECORD, '')))
self.custom.deletable = widget
self.custom.delete = self.custom.deletable = widget
# when writable, add submit button
self.custom.submit = ''