Created
February 9, 2015 08:57
-
-
Save crivotz/917eba7a90b1d2f8ccd3 to your computer and use it in GitHub Desktop.
Filter form with simple_form base on filterable by Justin Weiss ( http://goo.gl/xr10rK )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= simple_form_for :user, :method => 'get', :url => users_path, :html => {:class => ''} do |f| %> | |
<div class="form-group form-group-sm col-xs-12 col-sm-4 col-md-4 col-lg-3"> | |
<%= f.input :username_like, input_html: { name: 'username_like', :value => params[:username_like] }, label: t('fields.user.username'), :required => false %> | |
<%= f.input :is_active_check, input_html: { name: 'is_active_check' }, label: t('fields.user.is_active'), as: :select, checked_value: true, unchecked_value: false, :required => false, :selected => params[:is_active_check], :include_blank => '' %> | |
<%= f.input :acl_id_ref_check, collection: Acl.all, input_html: { name: 'acl_id_ref_check' }, as: :select, label_method: :description, label: t('fields.user.acl_id'), value_method: :id, :selected => params[:acl_id_ref_check], :include_blank => '', :required => false %> | |
<%= f.input :locale, :as => :hidden, :input_html => {:name => 'locale', :value => params[:locale] } %> | |
<%= f.button :submit, t('search'), class: "btn-success btn-sm" %> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment