Sha256: d3771341a788e036473678c6056618894185f19d706701b22af33a3d9238b28a

Contents?: true

Size: 1.34 KB

Versions: 34

Compression:

Stored size: 1.34 KB

Contents

<% label_title = Alchemy.t("Create #{resource_name}", default: Alchemy.t('Create')) %>

<% content_for(:toolbar) do %>
  <%= toolbar_button(
    icon: :plus,
    label: label_title,
    url: new_resource_path,
    title: label_title,
    hotkey: 'alt+n',
    dialog_options: {
      title: label_title,
      size: resource_window_size
    },
    if_permitted_to: [:create, resource_model]
  ) %>
  <%= toolbar_button(
    icon: :download,
    url: resource_url_proxy.url_for(action: 'index', format: 'csv', q: search_filter_params[:q], sort: params[:sort]),
    label: Alchemy.t(:download_csv),
    title: Alchemy.t(:download_csv),
    dialog: false,
    if_permitted_to: [:index, resource_model]
  ) %>
  <%= render 'alchemy/admin/partials/search_form', additional_params: [
    resource_has_filters ? :filter : nil,
    resource_has_tags ? :tagged_with : nil
  ].compact %>
<% end %>

<div id="archive_all" class="resources-table-wrapper<%= ' with_tag_filter' if resource_has_tags || resource_has_filters %>">
  <%= render 'alchemy/admin/resources/table_header' %>
  <%= render 'table' %>

  <% if resource_has_tags || resource_has_filters %>
    <div id="library_sidebar">
      <% if resource_has_filters %>
        <%= render 'filter_bar' %>
      <% end %>

      <% if resource_has_tags %>
        <%= render 'tag_list' %>
      <% end %>
    </div>
  <% end %>
</div>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.6 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.5 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.4 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.3 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.2 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.1 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.3.0 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.1.7 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.2.3 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.1.6 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-5.2.2 app/views/alchemy/admin/resources/index.html.erb