Files
fizzy/app/views/searches/_form.html.erb
T
2025-09-19 14:23:08 -05:00

16 lines
727 B
Plaintext

<%= form_with url: search_path, method: :get, class: "search__form flex align-center justify-center gap-half", data: { turbo_frame: "bar-content" } do |form| %>
<%= form.label :q, "Search Fizzy", class: "font-weight-black txt-nowrap" %>
<%= text_field_tag :q, query_terms,
class: "search__input input",
type: "search",
placeholder: "Find something…",
autocomplete: "off",
autofocus: true,
data: {
action: "keydown.enter->bar#showModalAndSubmit keydown.esc->bar#reset" } %>
<button class="search__reset btn btn--circle borderless" data-action="bar#reset">
<%= icon_tag "close" %>
<span class="for-screen-reader">Close search</span>
</button>
<% end %>