add search

This commit is contained in:
Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
1 parent 8259ebdb6c
commit ae5f87f8fb
28 files changed
+323 -34

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
<native-search class="contents">
<form action="<%= url_for %>" method="get" class="items-center flex max-md:focus-within:flex-1 <%= 'max-md:flex-1' if params[:q].present? %>" data-target="native-search.form">
<% unless turbo_native_app? %>
<form action="<%= url_for %>" method="get" class="items-center flex max-md:focus-within:flex-1 <%= 'max-md:flex-1' if params[:q].present? %>">
<% Submissions::Filter::ALLOWED_PARAMS.each do |key| %>
<% if params[key].present? %>
<input name="<%= key %>" value="<%= params[key] %>" class="hidden">
@@ -27,4 +27,4 @@
</button>
</search-input>
</form>
</native-search>
<% end %>