Sha256: 8fc0e9437ea3bd21026a545d9356d2fbc7d7aa0082bd29a9d5166baa145fff9e

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 KB

Contents

%table{ :class => 'records search_parameters' }
  %thead
    %tr
      %th.parameter_boolean_operator
      %th.parameter
        Criteria
      %th.remove
      %th.parameter_values
        Selections
  %tbody.nested_records_search_parameters
    = f.fields_for :search_parameters, f.object.search_parameters.ordered_by_display_order do |search_parameter|
      = render :partial => 'search_parameter_fields', :locals => { :f => search_parameter }
  %tfoot
    %tr
      %td{ :colspan => '4', :class => 'add_search_parameters_link' }
        = link_to_add_fields "Add criteria", :search_parameters
.clear

:javascript
  $(function () {
    var discernerSearchParametersTemplate = '#{generate_nested_attributes_template(f, :search_parameters, 'search_parameter')}',
    parametersUrl = decodeURIComponent('#{values_parameters_url(:parameter_id => ':question_id', :format => 'json')}'); // used to generate parameter values for list parameters

    new Discerner.SearchParameter.UI({
      searchParametersTemplate: discernerSearchParametersTemplate,
      parametersUrl: parametersUrl
    });
  });

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
discerner-1.2.2 app/views/discerner/searches/_form_search_parameters.html.haml
discerner-1.2.1 app/views/discerner/searches/_form_search_parameters.html.haml
discerner-1.2.0 app/views/discerner/searches/_form_search_parameters.html.haml
discerner-2.0.0 app/views/discerner/searches/_form_search_parameters.html.haml
discerner-1.1.20 app/views/discerner/searches/_form_search_parameters.html.haml
discerner-1.1.19 app/views/discerner/searches/_form_search_parameters.html.haml
discerner-1.1.18 app/views/discerner/searches/_form_search_parameters.html.haml