diff --git a/tailbone/forms2/core.py b/tailbone/forms2/core.py index d5b3cb81..938a40ef 100644 --- a/tailbone/forms2/core.py +++ b/tailbone/forms2/core.py @@ -320,6 +320,7 @@ class Form(object): """ Base class for all forms. """ + save_label = "Save" update_label = "Save" show_cancel = True diff --git a/tailbone/templates/forms2/deform.mako b/tailbone/templates/forms2/deform.mako index ce8a73d0..ef33d686 100644 --- a/tailbone/templates/forms2/deform.mako +++ b/tailbone/templates/forms2/deform.mako @@ -72,7 +72,7 @@ ${h.csrf_token(request)} % elif not readonly:
## ${h.submit('create', form.create_label if form.creating else form.update_label)} - ${h.submit('save', "Save")} + ${h.submit('save', getattr(form, 'save_label', "Save"))} ## % if form.creating and form.allow_successive_creates: ## ${h.submit('create_and_continue', form.successive_create_label)} ## % endif