From 00a3b8fc33646783b74f27daf61307dfba69e0ca Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 7 Feb 2018 19:28:54 -0600 Subject: [PATCH] Make it easier to hide buttons for a form --- tailbone/templates/forms2/deform.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/templates/forms2/deform.mako b/tailbone/templates/forms2/deform.mako index 3a2206b3..ee70917e 100644 --- a/tailbone/templates/forms2/deform.mako +++ b/tailbone/templates/forms2/deform.mako @@ -69,7 +69,7 @@ ${h.csrf_token(request)} % if buttons: ${buttons|n} -% elif not readonly: +% elif not readonly and (buttons is Undefined or (buttons is not None and buttons is not False)):
## ${h.submit('create', form.create_label if form.creating else form.update_label)} ${h.submit('save', getattr(form, 'save_label', "Save"))}