Sha256: 4e5e805d839701ac6ce8e9814339cccc2c3a061f1390ecc0b8b8b2c6ef1cf376

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

.row
  .col-sm-12
    = simple_form_for :scopes, url: request.path, method: :get, html: { class: 'form-inline' } do |form|

      - datatable.scopes.each do |name, options|
        - if options[:block].present?
          = form.instance_exec(form, &options[:block])
        - elsif options[:partial].present?
          = render partial: options[:partial], locals: { form: form, f: form, datatable: datatable }
        - else
          = form.input name, options[:filter]

      = form.submit 'Refresh', class: 'btn btn-primary', 'data-disable-with' => 'Refreshing...'
      = link_to 'Reset', '#', 'data-reset-form' => true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_datatables-2.5.2 app/views/effective/datatables/_scopes.html.haml
effective_datatables-2.5.1 app/views/effective/datatables/_scopes.html.haml
effective_datatables-2.5.0 app/views/effective/datatables/_scopes.html.haml