Sha256: b645a9c76989bfc6249d2b013022f8c7a682b346a52ffb8ff33bbc19df1ebd77
Contents?: true
Size: 1.07 KB
Versions: 27
Compression:
Stored size: 1.07 KB
Contents
- if @advanced_search %script{:type=>"text/javascript"} $(document).ready(function(){ var queryParams = []; - @advanced_search.each do |k, v| = "queryParams.push(generateQueryParam('#{k}', '', 'equal', '#{v}'));" $(".table").first().data("advancedquery", "{" + queryParams.join(", ") + "}"); }); - if presenter.advanced_search_fields.size > 0 = javascript_include_tag "carnival/advanced_search" .table-tools.toggler = link_to t("advanced_search"), "", id: "advanced_search_toggler", :class => "filters" %ul#advanced_search_form %form - presenter.advanced_search_fields.each do |key, field| %li.search_item .search_field .label = label_tag key, t("activerecord.attributes.#{presenter.full_model_name}.#{key}") .field = render '/carnival/shared/advanced_search_field', :field => field, :presenter => presenter %li.search_item .action = link_to t("clear"), "#", :id=> "clear_button" .action = link_to t("search"), "#", :id=> "search_button"
Version data entries
27 entries across 27 versions & 1 rubygems