Sha256: e6b87c2d6c6b4035e3b6c65cee850780cc4c23fbda81c17f3fbb66944dfc3a6f

Contents?: true

Size: 932 Bytes

Versions: 19

Compression:

Stored size: 932 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: "alchemy_selectbox full_width"
    ) %>
  </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

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-7.0.16 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.15 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.14 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.13 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.12 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.11 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.10 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.9 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.8 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.7 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.6 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.5 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.4 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.3 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.2 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.1 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.0 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.0.pre.rc1 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.0.pre.c app/views/alchemy/admin/pages/_page_layout_filter.html.erb