Sha256: d0da58ea321c3503c8086d796d6c40016576b80b31f7ca2aae714a0e6fbcd963
Contents?: true
Size: 942 Bytes
Versions: 31
Compression:
Stored size: 942 Bytes
Contents
<div id="page_layout_filter"> <label> <h3><%= Alchemy::Page.human_attribute_name(:page_layout) %></h3> <%= select_tag( "page_layout", options_for_select( @current_language.site.page_layout_names.map do |layout| [ Alchemy::Page.human_layout_name(layout), layout ] end, search_filter_params[:page_layout] ), include_blank: Alchemy.t(:all, scope: ["resources", "page", "filters"]), class: "full_width", is: "alchemy-select" ) %> </label> </div> <script type="text/javascript"> $(function() { $("#page_layout").on("change", function(e) { var url = "<%= alchemy.admin_pages_path(search_filter_params.except(:page_layout, :page).merge(view: "list")) %>"; delimiter = url.match(/\?/) ? "&" : "?"; Turbo.visit(url + delimiter + "page_layout=" + encodeURIComponent($(this).val())); }); }); </script>
Version data entries
31 entries across 31 versions & 1 rubygems