diff --git a/app/views/admin/contacts/index.haml b/app/views/admin/contacts/index.haml index 3f6fc9c1c..6ff70e55d 100644 --- a/app/views/admin/contacts/index.haml +++ b/app/views/admin/contacts/index.haml @@ -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 diff --git a/app/views/admin/domains/index.haml b/app/views/admin/domains/index.haml index 9a2f45ba7..e377b334e 100644 --- a/app/views/admin/domains/index.haml +++ b/app/views/admin/domains/index.haml @@ -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' diff --git a/app/views/client/contacts/index.haml b/app/views/client/contacts/index.haml index 3f6e9aaf2..f7d2a5fce 100644 --- a/app/views/client/contacts/index.haml +++ b/app/views/client/contacts/index.haml @@ -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