backoffice: use different labels to management view for forms/cards (#56276)
This commit is contained in:
parent
19a4da86a6
commit
eeb3a69af0
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue