Skip to content

Commit

Permalink
fix filter query
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail Akbudak committed Jun 22, 2016
1 parent f8712e2 commit 35b851f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/app/views/hq/admins/_filters.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
= link_to hq_admins_path(q: {is_active_false: 1}), class: 'btn btn-warning' do
= t('view.passive')
%span.badge= Admin.where(is_active: false).count
- if params[:q].present? && (params[:q][:is_active_true].present? || params[:q][:is_active_false].present? || params[:q][:blocked_true].present?)
- if params[:q].present? && (params[:q][:is_active_true].present? || params[:q][:is_active_false].present? || params[:q][:name_or_surname_cont].present?)
= link_to hq_admins_path, class: 'btn btn-info' do
= t('view.all')
%span.badge= Admin.count
.col-lg-9
= search_form_for [:hq, @search], builder: SimpleForm::FormBuilder, html: {class: 'form-inline', data: { turboform: true }} do |f|
.pull-right
.input-group
= f.input_field :name_cont, label: false, class: 'form-control', placeholder: t('view.quick_search')
= f.input_field :name_or_surname_cont, label: false, class: 'form-control', placeholder: t('view.quick_search')
%span.input-group-btn
= button_tag( class: 'btn btn-primary') do
%i.icon-search

0 comments on commit 35b851f

Please sign in to comment.