Sha256: b1d76a489826f90b69ab25f3f5d9cc34040d8397c77fc1526ed09dd790a5ea6f

Contents?: true

Size: 1.29 KB

Versions: 17

Compression:

Stored size: 1.29 KB

Contents

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

<% content_for(:toolbar) do %>
  <div class="toolbar_buttons">
    <%= toolbar_button(
      icon: "add",
      label: label_title,
      url: new_resource_path,
      title: label_title,
      hotkey: 'alt+n',
      tooltip_placement: "top-start",
      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]
    ) %>
  </div>
  <%= render 'alchemy/admin/partials/search_form' %>
<% 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">
      <%= render 'filter_bar' if resource_has_filters %>
      <%= render 'tag_list' if resource_has_tags %>
    </div>
  <% end %>
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-7.1.13 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.4 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.2 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.1 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.0 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/admin/resources/index.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/resources/index.html.erb