From 92ffb67f347182dc430cee4f907029a3e0fb805e Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Thu, 1 Jul 2021 12:38:40 +0300 Subject: [PATCH] changed added js-class to dropdown fields in epp logs, repp logs, contacts --- app/views/admin/contacts/index.haml | 6 +++--- app/views/admin/domains/_search_form.html.erb | 2 +- app/views/admin/epp_logs/index.haml | 6 +++--- app/views/admin/repp_logs/index.haml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/admin/contacts/index.haml b/app/views/admin/contacts/index.haml index 7da4f4ab7..6fa0b009b 100644 --- a/app/views/admin/contacts/index.haml +++ b/app/views/admin/contacts/index.haml @@ -19,7 +19,7 @@ .col-md-3 .form-group = label_tag t(:ident_type) - = select_tag '[q][ident_type_eq]', options_for_select(ident_types, params[:q][:ident_type_eq]), { include_blank: true, placeholder: t(:choose), class: 'form-control selectize' } + = select_tag '[q][ident_type_eq]', options_for_select(ident_types, params[:q][:ident_type_eq]), { include_blank: true, placeholder: t(:choose), class: 'form-control js-combobox' } .row .col-md-3 .form-group @@ -28,7 +28,7 @@ .col-md-3 .form-group = label_tag t(:country) - = select_tag '[q][country_code_eq]', ApplicationController.helpers.all_country_options(params[:q][:country_code_eq]), { include_blank: true, placeholder: t(:choose), class: 'form-control selectize' } + = select_tag '[q][country_code_eq]', options_for_select(ApplicationController.helpers.all_country_options(params[:q][:country_code_eq]), params[:q][:country_code_eq]), { multiple: false, placeholder: t(:choose), class: 'form-control js-combobox' } .col-md-6 .form-group = label_tag t(:contact_type) @@ -37,7 +37,7 @@ .col-md-3 .form-group = f.label t(:registrar_name) - = f.select :registrar_id_eq, Registrar.all.map { |x| [x, x.id] }, { include_blank: true }, class: 'form-control selectize', placeholder: t(:choose) + = f.select :registrar_id_eq, Registrar.all.map { |x| [x, x.id] }, { include_blank: true }, class: 'form-control js-combobox', placeholder: t(:choose) .col-md-3 .form-group = f.label t(:created_at_from) diff --git a/app/views/admin/domains/_search_form.html.erb b/app/views/admin/domains/_search_form.html.erb index cc570efbb..82713b3b1 100644 --- a/app/views/admin/domains/_search_form.html.erb +++ b/app/views/admin/domains/_search_form.html.erb @@ -71,4 +71,4 @@ -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/admin/epp_logs/index.haml b/app/views/admin/epp_logs/index.haml index ee62c4218..29493d3f7 100644 --- a/app/views/admin/epp_logs/index.haml +++ b/app/views/admin/epp_logs/index.haml @@ -8,17 +8,17 @@ .col-md-3 .form-group = f.label :request_command - = f.select :request_command_eq, [[t(:choose),''], 'hello', 'login', 'logout', 'info', 'create', 'update', 'delete', 'check', 'renew', 'transfer', 'poll'], {}, class: 'form-control selectize', placeholder: t(:choose) + = f.select :request_command_eq, [[t(:choose),''], 'hello', 'login', 'logout', 'info', 'create', 'update', 'delete', 'check', 'renew', 'transfer', 'poll'], {}, class: 'form-control js-combobox', placeholder: t(:choose) .col-md-3 .form-group - opts = [[t(:choose),''], 'contact', 'domain', 'poll'] - opts += [params[:q][:request_object_cont]] if params[:q].present? && params[:q][:request_object_cont].present? = f.label :request_object - = f.select :request_object_cont, opts, {}, class: 'form-control selectize_create', placeholder: t(:choose) + = f.select :request_object_cont, opts, {}, class: 'form-control js-combobox', placeholder: t(:choose) .col-md-3 .form-group = f.label :request_successful - = f.select :request_successful_true, [[t(:choose), ''], 'true', 'false'], {}, class: 'form-control selectize', placeholder: t(:choose) + = f.select :request_successful_true, [[t(:choose), ''], 'true', 'false'], {}, class: 'form-control js-combobox', placeholder: t(:choose) .col-md-3 .form-group = f.label :api_user diff --git a/app/views/admin/repp_logs/index.haml b/app/views/admin/repp_logs/index.haml index ec43a8262..14608f99f 100644 --- a/app/views/admin/repp_logs/index.haml +++ b/app/views/admin/repp_logs/index.haml @@ -8,11 +8,11 @@ .col-md-3 .form-group = f.label :request_path - = f.select :request_path_eq, [[t(:choose),''], '/repp/v1/domains', '/repp/v1/contacts'], {}, class: 'form-control selectize', placeholder: t(:choose) + = f.select :request_path_eq, [[t(:choose),''], '/repp/v1/domains', '/repp/v1/contacts'], {}, class: 'form-control js-combobox', placeholder: t(:choose) .col-md-3 .form-group = f.label :request_method - = f.select :request_method_eq, [[t(:choose),''], 'GET', 'POST', 'PUT', 'DELETE'], {}, class: 'form-control selectize', placeholder: t(:choose) + = f.select :request_method_eq, [[t(:choose),''], 'GET', 'POST', 'PUT', 'DELETE'], {}, class: 'form-control js-combobox', placeholder: t(:choose) .col-md-3 .form-group = f.label :response_code