From c74ff46b0f812c1eacf2ba9ea7f06748ece577cc Mon Sep 17 00:00:00 2001 From: momocus Date: Sat, 3 Jul 2021 18:27:58 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20elasticsearch=E3=81=AEindex=E3=83=93?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=82=92Bootstrap5=E5=AF=BE=E5=BF=9C?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/elasticsearch/index.html.erb | 30 +++++++++++++++----------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/app/views/elasticsearch/index.html.erb b/app/views/elasticsearch/index.html.erb index 3056b66e5..e7ca8f4cf 100644 --- a/app/views/elasticsearch/index.html.erb +++ b/app/views/elasticsearch/index.html.erb @@ -1,18 +1,22 @@

<%= link_to(t("views.elasticsearch.title"), elasticsearch_path, { class: "text-dark" }) %>

-<%= form_with({ scope: :elasticsearch, - url: elasticsearch_path, - method: :get, - local: true, - class: "form-inline my-1", }) do |f| %> - <%= f.label("search", class: "sr-only") %> - <%= f.text_field(:word, - { placeholder: "Keyword", - value: params.dig(:elasticsearch, :word), - class: "form-control mr-sm-2", }) %> - <%= button_tag(type: :submit, class: "btn btn-secondary") do %> - <%= bootstrap_icon("search") %> - <% end %> +<%= form_with( scope: :elasticsearch, + url: elasticsearch_path, + method: :get, + local: true, + class: "row my-1",) do |f| %> +
+ <%= f.label("search", class: "visually-hidden") %> + <%= f.text_field(:word, + { placeholder: "Keyword", + value: params.dig(:elasticsearch, :word), + class: "form-control mr-sm-2", }) %> +
+
+ <%= button_tag(type: :submit, class: "btn btn-secondary") do %> + <%= tag.i(class: "bi-search") %> + <% end %> +
<% end %> <% @sakes.each do |sake| %>