Sha256: e616e5c5ce5664cd1e27732700528d700ce73100cd33a6640e77e32af9286807

Contents?: true

Size: 1.32 KB

Versions: 11

Compression:

Stored size: 1.32 KB

Contents

#discerner_search_header
  - if @discerner_search.persisted?
    #messages

    .discerner_search_dictionary
      %b Dictionary:
      %span{ class: "#{@discerner_search.dictionary.css_class_name}"}
        #{@discerner_search.dictionary.name}
      - if @discerner_search.dictionary.deleted?
        %span{ style: "color:red;"}
          %b This dictionary has been deleted. You will not be able to execute or edit this search.

    .discerner_search_name
      %b Search name:
      %span.discerner_search_name
        = @discerner_search.display_name
      %span.discerner_search_name_edit
        = link_to 'Edit', '#', class: "discerner-edit-link discerner-icon-link"

  - else
    .discerner_dictionary_required_message
      %span
        Select dictionary in order to add search criteria

    %div.discerner_search_dictionary
      - if @searchable_dictionaries.length > 1
        = f.label :dictionary_id
        = f.select :dictionary_id, dictionary_options(@searchable_dictionaries), include_blank: true
      - else
        %b Dictionary:
        = f.hidden_field :dictionary_id, value: @searchable_dictionaries.last.id
        %span{ class: "#{@searchable_dictionaries.last.css_class_name}"}
          = @searchable_dictionaries.last.name

    %div.discerner_search_name
      = f.label :name, "Search name"
      = f.text_field :name

.clear

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
discerner-2.0.16 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.15 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.14 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.13 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.12 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.11 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.10 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.9 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.8 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.7 app/views/discerner/searches/_form_header.html.haml
discerner-2.0.6 app/views/discerner/searches/_form_header.html.haml