Domains index search

This commit is contained in:
Martin Lensment 2014-10-08 14:58:01 +03:00
parent c6e26f888e
commit c0c04a0a59
2 changed files with 26 additions and 0 deletions

View file

@ -2,6 +2,19 @@
.col-sm-12 .col-sm-12
%h2.text-center-xs= t('shared.domains') %h2.text-center-xs= t('shared.domains')
%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

View file

@ -5,6 +5,19 @@
%h2.text-right.text-center-xs %h2.text-right.text-center-xs
= link_to(t('shared.create_new_domain'), new_client_domain_path, class: 'btn btn-primary') = link_to(t('shared.create_new_domain'), new_client_domain_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