Skip to content
Snippets Groups Projects
Commit 94c332b4 authored by Patrick Hoste's avatar Patrick Hoste
Browse files

[FIX] website_profile: changes the display of the users search error message


The error message now display a message containing the term of
the search and it is also not always displayed as it was before

Task ID : 2036652

closes odoo/odoo#35052

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 0299a3fa
Branches
Tags
No related merge requests found
......@@ -233,7 +233,7 @@ class WebsiteProfile(http.Controller):
'pager': pager
}
else:
values = {'top3_users': [], 'users': [], 'pager': dict(page_count=0)}
values = {'top3_users': [], 'users': [], 'search': search_term, 'pager': dict(page_count=0)}
return request.render("website_profile.users_page_main", values)
......
......@@ -499,8 +499,8 @@
<t t-call="website_profile.all_user_card"/>
</tr>
</table>
<t else=''>
<div class='alert alert-warning'>No results matched</div>
<t t-if='search'>
<div class='alert alert-warning'>No user found for <strong><t t-esc="search"/></strong>. Try another search.</div>
</t>
<div class="form-inline justify-content-center">
<t t-call="website_profile.pager_nobox"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment