Sha256: 9961fc5ed7f597fdc11e12d551bba61c1c0947d92fb57c064d346565bf1483a1
Contents?: true
Size: 897 Bytes
Versions: 14
Compression:
Stored size: 897 Bytes
Contents
.effective-datatables-filters{'aria-controls': datatable.to_param} = effective_form_with(scope: :filters, url: (datatable._form[:url] || '#'), method: datatable._form[:verb]) do |form| .form-row.align-items-center - if datatable._scopes.present? = form.radios :scope, datatable._scopes.map { |name, opts| [opts[:label], name] }, label: false, required: false, checked: datatable.state[:scope], buttons: true, wrapper: { class: 'form-group col-auto' } - datatable._filters.each do |name, opts| = datatable_filter_tag(form, datatable, name, opts) .form-group.col-auto - if datatable._filters_form_required? = form.save 'Apply', 'data-disable-with': 'Applying...' - else = link_to 'Apply', '#', class: 'btn btn-primary btn-effective-datatables-filters', 'data-apply-effective-datatables-filters': true
Version data entries
14 entries across 14 versions & 1 rubygems