[openstreetmap/openstreetmap-website] Add status filter to user's note page (PR #5297)
Emin Kocan
notifications at github.com
Mon Nov 18 14:24:09 UTC 2024
@kcne commented on this pull request.
> @@ -6,6 +6,20 @@
:commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-body") %></p>
<% end %>
+<%= form_with :url => url_for(:controller => "notes", :action => "index"), :method => :get, :data => { :turbo => true } do %>
+ <div class="row gx-2 align-items-end">
+ <div class="col-sm-auto mb-3">
+ <%= label_tag :status, t(".status") %>
+ <%= select_tag :status,
+ options_for_select([[t(".all"), "all"], [t(".open"), "open"], [t(".closed"), "closed"]], params[:status] || "all"),
+ :class => "form-select" %>
+ </div>
+ <div class="col-sm-auto mb-3">
+ <%= submit_tag t(".apply"), :class => "btn btn-primary" %>
Couldn't realize why this was happening, I didn't like it either. Fixed now. Thank you.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5297#discussion_r1846676919
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5297/review/2442774088 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241118/1565c71a/attachment-0001.htm>
More information about the rails-dev
mailing list