diff --git a/pgweb/account/views.py b/pgweb/account/views.py index a5440772..88f33385 100644 --- a/pgweb/account/views.py +++ b/pgweb/account/views.py @@ -117,6 +117,7 @@ def signup(request): 'form': form, 'formitemtype': 'Account', 'form_intro': 'This is the intro text', + 'savebutton': 'Sign up', }, NavContext(request, 'account')) diff --git a/pgweb/util/helpers.py b/pgweb/util/helpers.py index b9dd0405..c3183c43 100644 --- a/pgweb/util/helpers.py +++ b/pgweb/util/helpers.py @@ -50,6 +50,7 @@ def simple_form(instancetype, itemid, request, formclass, formtemplate='base/for 'formitemtype': instance._meta.verbose_name, 'markdownfields': markdownfields, 'form_intro': hasattr(form, 'form_intro') and form.form_intro or None, + 'savebutton': (itemid == "new") and "New" or "Save", }, NavContext(request, navsection)) def template_to_string(templatename, attrs = {}): diff --git a/templates/base/form.html b/templates/base/form.html index b18d3f87..bbc19c68 100644 --- a/templates/base/form.html +++ b/templates/base/form.html @@ -11,7 +11,7 @@