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

Version Path
effective_datatables-4.3.3 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.3.2 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.3.1 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.3.0 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.2.0 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.1.1 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.1.0 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.0.6 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.0.5 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.0.4 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.0.3 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.0.2 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.0.1 app/views/effective/datatables/_filters.html.haml
effective_datatables-4.0.0 app/views/effective/datatables/_filters.html.haml