1 <% content_for :heading do %>
2 <h1><%= t ".title" %></h1>
5 <p><%= t ".search_guidance" %></p>
7 <%= form_tag(issues_path, :method => :get, :data => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" }) do %>
9 <div class="mb-3 col-md-auto">
10 <%= select_tag :status,
11 options_for_select(Issue.aasm.states.map(&:name).map { |state| [t(".states.#{state}"), state] }, params[:status]),
12 :include_blank => t(".select_status"),
13 :data => { :behavior => "category_dropdown" },
14 :class => "form-select" %>
16 <div class="mb-3 col-md-auto">
17 <%= select_tag :issue_type,
18 options_for_select(@issue_types.map { |issue_type| [issue_type.constantize.model_name.human, issue_type] }, params[:issue_type]),
19 :include_blank => t(".select_type"),
20 :data => { :behavior => "category_dropdown" },
21 :class => "form-select" %>
23 <div class="mb-3 col-md">
24 <%= text_field_tag :search_by_user,
25 params[:search_by_user],
26 :placeholder => t(".reported_user"),
27 :autocomplete => "on",
28 :class => "form-control" %>
30 <div class="mb-3 col-md-auto">
31 <%= select_tag :last_updated_by,
32 options_for_select(@users.all.collect { |f| [f.display_name, f.id] } << [t(".not_updated"), "nil"], params[:last_updated_by]),
33 :include_blank => t(".select_last_updated_by"),
34 :data => { :behavior => "category_dropdown" },
35 :class => "form-select" %>
37 <div class="mb-3 col-md-auto">
38 <%= submit_tag t(".search"), :name => nil, :class => "btn btn-primary" %>
43 <%= render :partial => "page" %>