Add pattern matching for domain name field in search #2122

This commit is contained in:
Martin Lensment 2015-07-30 14:26:23 +03:00
parent 31d19ff64e
commit 4b9e082712
3 changed files with 12 additions and 3 deletions

View file

@ -2,12 +2,12 @@
.row
.col-md-12
= search_form_for [:admin, @q], html: { style: 'margin-bottom: 0;', class: 'js-form' } do |f|
= search_form_for [:admin, @q], html: { style: 'margin-bottom: 0;', class: 'js-form', autocomplete: 'off' } do |f|
.row
.col-md-3
.form-group
= f.label :name
= f.search_field :name_cont, class: 'form-control', placeholder: t(:name)
= f.search_field :name_matches, value: params[:q][:name_matches], class: 'form-control', placeholder: t(:name)
.col-md-3
.form-group
= f.label t(:registrant_ident)