changed added js-class to dropdown fields in epp logs, repp logs, contacts

This commit is contained in:
Oleg Hasjanov 2021-07-01 12:38:40 +03:00
parent 2e839007fd
commit 92ffb67f34
4 changed files with 9 additions and 9 deletions

View file

@ -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)

View file

@ -71,4 +71,4 @@
</div>
</div>
<% end %>
<% end %>

View file

@ -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

View file

@ -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