Search: Fix redesign

This commit makes the search workable, fixes the length of the search button, translates the placeholder and returns the number of results
This commit is contained in:
Maxim Leshchenko 2021-12-14 22:43:10 +02:00
parent 49abdd3b88
commit db91af2a52
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
4 changed files with 11 additions and 3 deletions

View file

@ -31,11 +31,15 @@
</a> </a>
</div> </div>
<div class="header_search_inputbt"> <form class="header_search_inputbt">
<input name="type" type="hidden" value="{$type ?? 'users'}" /> <input name="type" type="hidden" value="{$type ?? 'users'}" />
<input type="" name="" class="header_search_input" placeholder="Начните вводить любое имя, название или слово"> <input name="query" class="header_search_input" placeholder="{_search_placeholder}" value="{$_GET['query'] ?? ''}" />
<button class="button_search">{_search_button}</button> <button class="button_search">{_search_button}</button>
</div> </form>
<p style="margin-left: 15px; margin-top: 0;">
<b>{tr("results", $count)}</b>
</p>
{/block} {/block}
{block link|strip|stripHtml} {block link|strip|stripHtml}

View file

@ -1610,6 +1610,7 @@ body.scrolled .toTop:hover {
padding: 10px; padding: 10px;
border-top: 1px solid #ebebeb; border-top: 1px solid #ebebeb;
display: flex; display: flex;
margin-bottom: 0;
} }
.header_search_input { .header_search_input {
@ -1638,6 +1639,7 @@ body.scrolled .toTop:hover {
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
margin-left: 10px; margin-left: 10px;
width: 7.5%;
} }
.content_search { .content_search {

View file

@ -362,6 +362,7 @@
"search_for_groups" = "Search for groups"; "search_for_groups" = "Search for groups";
"search_for_people" = "Search for people"; "search_for_people" = "Search for people";
"search_button" = "Find"; "search_button" = "Find";
"search_placeholder" = "Start typing any name, title or word";
"results_zero" = "No results"; "results_zero" = "No results";
"results_one" = "$1 result"; "results_one" = "$1 result";
"results_other" = "$1 results"; "results_other" = "$1 results";

View file

@ -380,6 +380,7 @@
"search_for_groups" = "Поиск групп"; "search_for_groups" = "Поиск групп";
"search_for_people" = "Поиск людей"; "search_for_people" = "Поиск людей";
"search_button" = "Найти"; "search_button" = "Найти";
"search_placeholder" = "Начните вводить любое имя, название или слово";
"results_zero" = "Ни одного результата"; "results_zero" = "Ни одного результата";
"results_one" = "Один результат"; "results_one" = "Один результат";
"results_few" = "$1 результата"; "results_few" = "$1 результата";