- <%= label_tag :note_type, t(".interaction_type") %>
- <%= select_tag :note_type,
- options_for_select([[t(".all"), ""], [t(".submitted"), "submitted"], [t(".commented"), "commented"]], params[:note_type] || "all"),
- :class => "form-select" %>
+<%= form_tag(url_for("controller" => "notes", "action" => "index"), "method" => :get, "data" => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" }) do %>
+
+
+ <%= 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",
+ :onchange => "this.form.requestSubmit()" %>
-
- <%= label_tag :from, t(".from") %>
- <%= date_field_tag :from, params[:from], :placeholder => t(".from"), :class => "form-control", :autocomplete => "off" %>
-
-
- <%= label_tag :to, t(".to") %>
- <%= date_field_tag :to, params[:to], :placeholder => t(".to"), :class => "form-control", :autocomplete => "off" %>
-
-
- <%= submit_tag t(".filter"), :class => "btn btn-primary" %>
-
+
+ <%= label_tag :note_type, t(".interaction_type") %>
+ <%= select_tag :note_type,
+ options_for_select([[t(".all"), ""], [t(".submitted"), "submitted"], [t(".commented"), "commented"]], params[:note_type] || "all"),
+ :class => "form-select",
+ :onchange => "this.form.requestSubmit()" %>
+
+
+ <%= label_tag :from, t(".from") %>
+ <%= date_field_tag :from, params[:from], :placeholder => t(".from"), :class => "form-control", :autocomplete => "off", :onchange => "this.form.requestSubmit()" %>
- <% end %>
+
+ <%= label_tag :to, t(".to") %>
+ <%= date_field_tag :to, params[:to], :placeholder => t(".to"), :class => "form-control", :autocomplete => "off", :onchange => "this.form.requestSubmit()" %>
+
+
+ <%= submit_tag t(".filter"), :class => "btn btn-primary" %>
+
+
- <%= render :partial => "notes_paging_nav" %>
+ <% if @notes.empty? %>
+