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

Version Path
effective_datatables-3.2.4 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.2.3 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.2.2 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.2.1 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.2 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.1.3 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.1.2 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.1.1 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.1.0 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.16 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.15 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.14 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.13 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.12 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.11 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.10 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.9 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.8 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.7 app/views/effective/datatables/_filters.html.haml
effective_datatables-3.0.6 app/views/effective/datatables/_filters.html.haml