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

Version Path
alchemy_cms-7.3.5 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.8 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.1.13 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.3.4 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.3.3 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.3.2 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.7 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.3.1 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.3.0 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/pages/_page_layout_filter.html.erb