Sha256: 545e96e19054548a67838087b72bb4018da03044646f0c3aea26700793b6072d
Contents?: true
Size: 1.17 KB
Versions: 26
Compression:
Stored size: 1.17 KB
Contents
.row .col-sm-12.effective-datatable-filters{'aria-controls' => datatable.to_param} = simple_form_for :filters, url: (datatable._form[:url] || '#'), method: datatable._form[:verb], html: { class: 'form-inline' } do |form| - if datatable._scopes.present? = form.input :scope, label: false, required: false, checked: datatable.state[:scope], as: (defined?(EffectiveFormInputs) ? :effective_radio_buttons : :radio_buttons), collection: datatable._scopes.map { |name, opts| [opts[:label], name] }, buttons: true - datatable._filters.each do |name, opts| = form.input name, label: opts[:label], required: false, value: datatable.state[:filter][name], as: opts[:as], collection: opts[:input_html].delete(:collection), multiple: opts[:input_html].delete(:multiple), input_html: (({name: ''} unless datatable._filters_form_required?) || {}).merge(opts[:input_html]) - if datatable._filters_form_required? = form.button :submit, 'Apply', 'data-disable-with' => 'Applying...' - else = link_to 'Apply', '#', class: 'btn btn-primary', 'data-apply-datatable-filters' => true
Version data entries
26 entries across 26 versions & 1 rubygems