Skip to content

Commit

Permalink
improve audit list page
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail Akbudak committed Jun 22, 2016
1 parent ba23509 commit ba99b3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/app/views/hq/audits/_filters.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
%span.badge= Audit.count
.col-lg-10
.pull-right
= search_form_for @search, builder: SimpleForm::FormBuilder, html: {class: 'form-inline'}, url: hq_audits_path do |f|
= search_form_for @search, builder: SimpleForm::FormBuilder, html: {class: 'form-inline', data: { turboform: true }}, url: hq_audits_path do |f|
.form-group
= f.label :user_type, label: t('activerecord.attributes.audits.user_type')
= f.input_field :user_type_eq, label: false, class: 'form-control', placeholder: t('activerecord.attributes.audits.user'), collection: get_audit_users, include_blank: t('view.select')
= f.input_field :user_type_eq, label: false, class: 'form-control chosen-select', placeholder: t('activerecord.attributes.audits.user'), collection: get_audit_users, include_blank: t('view.select')

- if params[:q].present? and params[:q][:user_type_eq].present?
- type = params[:q][:user_type_eq]
Expand All @@ -27,6 +27,6 @@
= f.input_field :auditable_id_eq, label: false, class: 'form-control', placeholder: t('activerecord.attributes.audits.auditable_id')

= f.label :user, label: t('activerecord.attributes.audits.action')
= f.input_field :action_eq, label: false, class: 'form-control', placeholder: t('activerecord.attributes.audits.action'), collection: %w(create update destroy).map{|a| [t("actions.#{a}"), a]}, include_blank: t('view.select')
= f.input_field :action_eq, label: false, class: 'form-control chosen-select', placeholder: t('activerecord.attributes.audits.action'), collection: %w(create update destroy).map{|a| [t("actions.#{a}"), a]}, include_blank: t('view.select')
= button_tag( class: 'btn btn-success btn-group') do
%i.fa.fa-search

0 comments on commit ba99b3d

Please sign in to comment.