|
|
|
@ -78,9 +78,22 @@ |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<div class="search-form d-lg-flex d-inline-block"> |
|
|
|
|
<%= form_for @conn, chain_path(@conn, :search), [class: "form-inline my-2 my-lg-0", method: :get, enforce_utf8: false], fn f -> %> |
|
|
|
|
<%= form_for @conn, chain_path(@conn, :search), [class: "form-inline my-2 my-lg-0", method: :get, enforce_utf8: false], fn f -> %> <!-- </div> --> |
|
|
|
|
<div class="input-group"> |
|
|
|
|
<%= search_input f, :q, class: 'form-control mr-auto', placeholder: gettext("Search by address, token symbol name, transaction hash, or block number"), "aria-describedby": "search-icon", "aria-label": gettext("Search"), "data-test": "search_input" %> |
|
|
|
|
<%= awesomplete(f, :q, |
|
|
|
|
[ |
|
|
|
|
class: "form-control me auto", |
|
|
|
|
placeholder: gettext("Search by address, token symbol name, transaction hash, or block number"), |
|
|
|
|
"aria-describedby": "search-icon", |
|
|
|
|
"aria-label": gettext("Search"), |
|
|
|
|
"data-test": "search_input" |
|
|
|
|
], |
|
|
|
|
[ url: "#{chain_path(@conn, :token_autocomplete)}?q=", |
|
|
|
|
prepop: true, |
|
|
|
|
minChars: 3, |
|
|
|
|
maxItems: 8, |
|
|
|
|
value: "name" |
|
|
|
|
]) %> |
|
|
|
|
<div class="input-group-append"> |
|
|
|
|
<button class="input-group-text" id="search-icon"> |
|
|
|
|
<%= render BlockScoutWeb.IconsView, "_search_icon.html" %> |
|
|
|
|