mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Fix contact search
This commit is contained in:
parent
7df902a543
commit
f0b46469c8
3 changed files with 27 additions and 3 deletions
|
@ -1,7 +1,19 @@
|
||||||
.row
|
.row
|
||||||
.col-sm-12
|
.col-sm-12
|
||||||
%h2.text-center-xs= t('shared.contacts')
|
%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
|
%hr
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%hr
|
%hr
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.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
|
.col-md-11
|
||||||
.form-group
|
.form-group
|
||||||
= f.search_field :name_cont, class: 'form-control'
|
= f.search_field :name_cont, class: 'form-control'
|
||||||
|
|
|
@ -1,11 +1,23 @@
|
||||||
.row
|
.row
|
||||||
.col-sm-6
|
.col-sm-6
|
||||||
%h2.text-center-xs= t('shared.contacts')
|
%h2.text-center-xs= t('shared.contacts')
|
||||||
= render 'admin/contacts/partials/search'
|
|
||||||
.col-sm-6
|
.col-sm-6
|
||||||
%h2.text-right.text-center-xs
|
%h2.text-right.text-center-xs
|
||||||
= link_to(t('shared.create_new_contact'), new_client_contact_path, class: 'btn btn-primary')
|
= link_to(t('shared.create_new_contact'), new_client_contact_path, class: 'btn btn-primary')
|
||||||
%hr
|
%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
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue