backoffice: rename search button label (#45788)
This commit is contained in:
parent
b5a8437129
commit
fd1eb817aa
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue