Sha256: bd64a5e7e04ba89e7cbcef14c886249c0cd8a429ad9b38ca90a7a650ad1a1b91

Contents?: true

Size: 937 Bytes

Versions: 13

Compression:

Stored size: 937 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(/\?/) ? "&" : "?";
      Turbolinks.visit(url + delimiter + "page_layout=" + encodeURIComponent($(this).val()));
    });
  });
</script>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.9 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.8 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.7 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.6 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.0.pre.b app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.5 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.4 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-7.0.0.pre.a app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.3 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.2 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.1 app/views/alchemy/admin/pages/_page_layout_filter.html.erb
alchemy_cms-6.1.0 app/views/alchemy/admin/pages/_page_layout_filter.html.erb