Add missing partial and wildcard search on /admin/repp_logs

This commit is contained in:
Thiago Youssef 2022-03-29 11:45:55 +03:00
parent 1106893a87
commit 2cff7d93fd
2 changed files with 8 additions and 12 deletions

View file

@ -20,13 +20,12 @@
.col-md-3
.form-group
= f.label :api_user
= f.search_field :api_user_name_cont, class: 'form-control', placeholder: t(:api_user), autocomplete: 'off'
= f.search_field :api_user_name_matches, value: params[:q][:api_user_name_matches], class: 'form-control', placeholder: t(:api_user), autocomplete: 'off'
.row
.col-md-3
.form-group
= f.label :registrar
= f.select :api_user_registrar_cont, Registrar.all.map { |x| [x, x.name] }, { include_blank: true }, class: 'form-control', placeholder: t(:choose)
-# = f.search_field :api_user_registrar_cont, class: 'form-control', placeholder: t(:registrar_name), autocomplete: 'off'
= f.select :api_user_registrar_matches, Registrar.all.map { |x| [x, x.name] }, { include_blank: true }, class: 'form-control', placeholder: t(:choose)
.col-md-3
.form-group
= f.label t(:created_after)