mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-12 23:05:12 +00:00
Make the base form support different names for the save button
This commit is contained in:
@ -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 = {}):
|
||||
|
Reference in New Issue
Block a user