Sha256: adc1dd28ea1cccfc5e978bdae895bc6abf6d498da4cb42c0ee4db830302575f3

Contents?: true

Size: 816 Bytes

Versions: 8

Compression:

Stored size: 816 Bytes

Contents

- 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

8 entries across 8 versions & 1 rubygems

Version Path
discerner-2.0.8 app/views/discerner/searches/_form.html.haml
discerner-2.0.7 app/views/discerner/searches/_form.html.haml
discerner-2.0.6 app/views/discerner/searches/_form.html.haml
discerner-2.0.5 app/views/discerner/searches/_form.html.haml
discerner-2.0.4 app/views/discerner/searches/_form.html.haml
discerner-2.0.3 app/views/discerner/searches/_form.html.haml
discerner-2.0.2 app/views/discerner/searches/_form.html.haml
discerner-2.0.1 app/views/discerner/searches/_form.html.haml