backoffice: don't include "Form" in <title> of fields pages (#41089)

This commit is contained in:
Frédéric Péters 2020-03-27 09:47:20 +01:00
parent fb54381760
commit 99f4135670
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class FieldDefPage(Directory):
redo = True
if redo or not form.get_submit() == 'submit':
self.html_top('%s - %s' % (_('Form'), self.objectdef.name))
self.html_top(self.objectdef.name)
r = TemplateIO(html=True)
r += htmltext('<h2>%s</h2>') % misc.ellipsize(self.field.unhtmled_label, 80)
r += form.render()
@ -200,7 +200,7 @@ class FieldsDirectory(Directory):
return d
def _q_index(self):
self.html_top('%s - %s' % (_('Form'), self.objectdef.name))
self.html_top(self.objectdef.name)
get_response().add_javascript(['jquery.js', 'jquery-ui.js', 'biglist.js'])
r = TemplateIO(html=True)