backoffice: use different labels to management view for forms/cards (#56276)

This commit is contained in:
Frédéric Péters 2021-08-20 09:26:43 +02:00
parent 19a4da86a6
commit eeb3a69af0
2 changed files with 3 additions and 1 deletions

View File

@ -582,6 +582,7 @@ class FormDefPage(Directory):
'Do note it kept its existing address and role and workflow parameters.'
)
readonly_message = _('This form is readonly.')
management_view_label = _('Management view')
def __init__(self, component, instance=None):
try:
@ -888,7 +889,7 @@ class FormDefPage(Directory):
if user.is_admin or self.formdef.is_of_concern_for_user(user):
r += htmltext('<li><a href="%s">%s</a></li>') % (
self.formdef.get_url(backoffice=True),
_('Management view'),
self.management_view_label,
)
r += htmltext('</ul>')
r += LoggedErrorsDirectory.errors_block(formdef_class=self.formdef_class, formdef_id=self.formdef.id)

View File

@ -58,6 +58,7 @@ class CardDefPage(FormDefPage):
'Do note it kept its existing address and role and workflow parameters.'
)
readonly_message = _('This card model is readonly.')
management_view_label = _('List of cards')
def html_top(self, title):
return html_top('cards', title)