Fix contact search

This commit is contained in:
Martin Lensment 2014-10-08 15:09:05 +03:00
parent 7df902a543
commit f0b46469c8
3 changed files with 27 additions and 3 deletions

View file

@ -1,7 +1,19 @@
.row
.col-sm-12
%h2.text-center-xs= t('shared.contacts')
= render 'admin/contacts/partials/search'
%hr
.row
.col-md-12
= search_form_for [:admin, @q], html: { class: 'form-horizontal' } do |f|
.col-md-11
.form-group
= f.search_field :name_cont, class: 'form-control'
.col-md-1.text-right.text-center-xs
.form-group
%button.btn.btn-primary
 
%span.glyphicon.glyphicon-search
 
%hr
.row
.col-md-12

View file

@ -4,7 +4,7 @@
%hr
.row
.col-md-12
= search_form_for [:client, @q], html: { class: 'form-horizontal' } do |f|
= search_form_for [:admin, @q], html: { class: 'form-horizontal' } do |f|
.col-md-11
.form-group
= f.search_field :name_cont, class: 'form-control'

View file

@ -1,11 +1,23 @@
.row
.col-sm-6
%h2.text-center-xs= t('shared.contacts')
= render 'admin/contacts/partials/search'
.col-sm-6
%h2.text-right.text-center-xs
= link_to(t('shared.create_new_contact'), new_client_contact_path, class: 'btn btn-primary')
%hr
.row
.col-md-12
= search_form_for [:client, @q], html: { class: 'form-horizontal' } do |f|
.col-md-11
.form-group
= f.search_field :name_cont, class: 'form-control'
.col-md-1.text-right.text-center-xs
.form-group
%button.btn.btn-primary
 
%span.glyphicon.glyphicon-search
 
%hr
.row
.col-md-12
.table-responsive