0001-backoffice-rename-search-button-label-45788.patch
wcs/backoffice/data_management.py | ||
---|---|---|
85 | 85 |
('data-sample-csv', 'data_sample_csv')] |
86 | 86 |
admin_permission = 'cards' |
87 | 87 |
formdef_class = CardDef |
88 |
search_label = N_('Search in card content') |
|
88 | 89 | |
89 | 90 |
@property |
90 | 91 |
def add(self): |
wcs/backoffice/management.py | ||
---|---|---|
1030 | 1030 |
view = None |
1031 | 1031 |
admin_permission = 'forms' |
1032 | 1032 |
formdef_class = FormDef |
1033 |
search_label = N_('Search in form content') |
|
1033 | 1034 | |
1034 | 1035 |
def __init__(self, component=None, formdef=None, view=None): |
1035 | 1036 |
self.view_type = None |
... | ... | |
1397 | 1398 |
r += htmltext('<input type="hidden" name="order_by" value="%s"/>') % order_by |
1398 | 1399 | |
1399 | 1400 |
if get_publisher().is_using_postgresql(): |
1400 |
r += htmltext('<h3>%s</h3>') % _('Search')
|
|
1401 |
r += htmltext('<h3>%s</h3>') % _(self.search_label)
|
|
1401 | 1402 |
if get_request().form.get('q'): |
1402 | 1403 |
q = force_text(get_request().form.get('q')) |
1403 | 1404 |
r += htmltext('<input class="inline-input" name="q" value="%s">') % force_str(q) |
1404 |
- |