Sha256: 2b981b4a6038156e3431f454ffdb14a25729f8b37904e003bb26604be6df4e71

Contents?: true

Size: 865 Bytes

Versions: 1

Compression:

Stored size: 865 Bytes

Contents

- dom_id_format = 'pane-filters-%s-' + dom_id

form.form-search.form-inline.pane-filters-form id=(dom_id_format % :form)
  div id=(dom_id_format % :input) style="display: inline-block;"
    == render_filters

  - if @reverse_assoc
    - jsvar = @reverse_assoc.dom_id + '__filters_instance'
    - route = '%s/%s' % [@reverse_assoc.route, @reverse_assoc.attached]
    javascript:
      var #{jsvar} = new Rear.Filters('#{dom_id}', '#{route}');
    .btn-group
      button.btn.btn-small type="button" onclick="#{jsvar}.apply();"
        i.icon-search
        | Search
      button.btn.btn-small type="button" onclick="#{jsvar}.reset();"
        i.icon-remove
        | Reset
  - else
    .btn-group
      button.btn.btn-small type="submit" value="Search"
        i.icon-search
        | Search
      a.btn.btn-small href=base_url
        i.icon-remove
        | Reset

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rear-0.2.0 lib/rear/templates/filters/layout.slim