backoffice: rename search button label (#45788)

This commit is contained in:
Lauréline Guérin 2020-09-08 15:25:06 +02:00
parent b5a8437129
commit fd1eb817aa
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 3 additions and 1 deletions

View File

@ -85,6 +85,7 @@ class CardPage(FormPage):
('data-sample-csv', 'data_sample_csv')]
admin_permission = 'cards'
formdef_class = CardDef
search_label = N_('Search in card content')
@property
def add(self):

View File

@ -1030,6 +1030,7 @@ class FormPage(Directory):
view = None
admin_permission = 'forms'
formdef_class = FormDef
search_label = N_('Search in form content')
def __init__(self, component=None, formdef=None, view=None):
self.view_type = None
@ -1397,7 +1398,7 @@ class FormPage(Directory):
r += htmltext('<input type="hidden" name="order_by" value="%s"/>') % order_by
if get_publisher().is_using_postgresql():
r += htmltext('<h3>%s</h3>') % _('Search')
r += htmltext('<h3>%s</h3>') % _(self.search_label)
if get_request().form.get('q'):
q = force_text(get_request().form.get('q'))
r += htmltext('<input class="inline-input" name="q" value="%s">') % force_str(q)