Sha256: 3c6376421ce320fd0f58016d59851146c457b1ea64c8701332e86f299029ab90

Contents?: true

Size: 890 Bytes

Versions: 6

Compression:

Stored size: 890 Bytes

Contents

= image_tag 'discerner/ajax-loader.gif', class: 'discerner-spinner hide'

- unless @discerner_search.blank?
  = render 'discerner/shared/error_messages', object: @discerner_search

  #discerner_search_form
    = form_for @discerner_search, html: { id: 'search' } do |f|
      = render partial: 'form_header', locals: { f: f }
      - unless enable_combined_searches?.blank?
        = render partial: 'form_combined_searches', locals: { f: f }
      = render partial: 'form_search_parameters', locals: { f: f }
      = render partial: 'form_controls', locals: { f: f }
  .clear

  :javascript
    $(function () {
      var yearRange = '#{DateTime.now.year - 100}:#{DateTime.now.year}',
      renameUrl = '#{@discerner_search.persisted? ? rename_search_path(@discerner_search) : ""}';
      new Discerner.Search.UI({
        yearRange: yearRange,
        renameUrl: renameUrl
      })
    });

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
discerner-2.0.16 app/views/discerner/searches/_form.html.haml
discerner-2.0.15 app/views/discerner/searches/_form.html.haml
discerner-2.0.14 app/views/discerner/searches/_form.html.haml
discerner-2.0.13 app/views/discerner/searches/_form.html.haml
discerner-2.0.12 app/views/discerner/searches/_form.html.haml
discerner-2.0.11 app/views/discerner/searches/_form.html.haml