Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

790 ransack clear filters #936

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/views/account/shared/_search_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<%= search_form_for(q, url: search_url, method: :get, class: "d-flex mb-5") do |f| %>
<%= f.search_field search_attribute, placeholder: t(".search_placeholder"), class: "form-input me-2" %>
<%= f.button t(".search_button"), class: "btn btn-blue px-4 items-center" %>
<%= link_to t(".clear_button"), search_url, class: "btn btn-grey px-4 items-center ml-2" %>
<% end %>
</div>
1 change: 1 addition & 0 deletions config/locales/en/layouts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ en:
search_form:
search_placeholder: "Search"
search_button: "Search"
clear_button: "Clear"
1 change: 1 addition & 0 deletions config/locales/uk/layouts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ uk:
search_form:
search_placeholder: "Пошук"
search_button: "Шукати"
clear_button: "Очистити"
Loading