From 7da90b0d6faec7ea7bdd2ed1eddc7ad1dbc19db1 Mon Sep 17 00:00:00 2001 From: janpaulo Date: Mon, 28 Feb 2022 11:43:29 +0800 Subject: [PATCH] Add fields for search --- ...ocument_advanced_search_component.html.erb | 54 ++++++++++++------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/app/components/document_advanced_search_component/document_advanced_search_component.html.erb b/app/components/document_advanced_search_component/document_advanced_search_component.html.erb index 0d0d2d1..a0c1f99 100644 --- a/app/components/document_advanced_search_component/document_advanced_search_component.html.erb +++ b/app/components/document_advanced_search_component/document_advanced_search_component.html.erb @@ -1,30 +1,46 @@ <%= form_tag(documents_path, method: :get) do %> -
- <%= text_field_tag :q, params[:q], placeholder: 'Full text search', class: "form-control" %> +
+ <%= text_field_tag :q, params[:q], placeholder: 'Full text search', class: "form-control mb-0" %>
-
-
+
+
- <%= text_field_tag :reference_number, params[:reference_number], class: "form-control" %> + <%= text_field_tag :reference_number, params[:reference_number], class: "form-control mb-0" %>
-
- - <%= text_field_tag :title, params[:short_title], class: "form-control" %> +
+ + <%= text_field_tag :title, params[:short_title], class: "form-control mb-0" %>
- -
- - <%= select_tag :year, options_for_select(years, params[:year]), class: "form-select", include_blank: true %> + +
+ + <%= text_field_tag :title, params[:short_title], class: "form-control mb-0" %>
- -
+ +
+ + <%= text_field_tag :title, params[:short_title], class: "form-control mb-0" %> +
+
+ +
+ + <%= select_tag :year, options_for_select(years, params[:year]), class: "form-select", include_blank: true %> +
+ +
+ <%= select_tag :year, options_for_select(years, params[:year]), class: "form-select", include_blank: true %> +
+
+
+
- <%= text_field_tag :citation_finder, params[:citation_finder], class: "form-control" %> + <%= text_field_tag :citation_finder, params[:citation_finder], class: "form-control mb-0" %>
- -
- - + +
+ +
<% end %>