Skip to content

Commit

Permalink
Fix account activity view search
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Dec 5, 2024
1 parent 2cba517 commit a9daba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/account/entries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>

<div>
<%= form_with url: account_entries_path(@account),
<%= form_with url: account_entries_path,
id: "entries-search",
scope: :q,
method: :get,
Expand All @@ -35,6 +35,7 @@
<div class="grow">
<div class="flex items-center px-3 py-2 gap-2 border border-gray-200 rounded-lg focus-within:ring-gray-100 focus-within:border-gray-900">
<%= lucide_icon("search", class: "w-5 h-5 text-gray-500") %>
<%= hidden_field_tag :account_id, @account.id %>
<%= form.search_field :search,
placeholder: "Search entries by name",
value: @q[:search],
Expand Down

0 comments on commit a9daba1

Please sign in to comment.