Sha256: 14294bc6f2592d3d262c87f7e2e452ff23c28dbd7557cee5df37c21503bef63a

Contents?: true

Size: 1.08 KB

Versions: 7

Compression:

Stored size: 1.08 KB

Contents

<% content_for(:toolbar) do %>
  <%= render 'alchemy/admin/partials/site_select' %>
  <%= render 'language_tree_select' %>
  <%= print_current_site_language %>
  <%= render partial: 'search_box', locals: {url: polymorphic_path(url_namespace), base_class: base_class} %>
<% end %>

<% toolbar(
     buttons: [
       {
         icon: :plus,
         label: acm_t(:title_action, action: acm_t(:new, scope: :actions), model: base_class.model_name.human),
         url: new_polymorphic_path(url_namespace),
         title: acm_t(:title_action, action: acm_t(:new, scope: :actions), model: base_class.model_name.human),
         hotkey: 'alt+n',
         dialog: false,
         if_permitted_to: [:create, base_class]
       }
     ],
     search: false,
   ) %>


<%= base_container do %>

  <div id="archive_all" class="resources-table-wrapper">

    <%= content_tag :h1, "#{@objects.count} #{base_class.model_name.human(count: @objects.count)}", class: 'resources-header' %>


    <%= render partial: "table" %>

    <%= paginate @objects, theme: 'alchemy', hide_per_page_select: true %>

  </div>

<% end %>


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy-custom-model-0.1.6 app/views/alchemy/custom/model/admin/base/index.html.erb
alchemy-custom-model-0.1.5 app/views/alchemy/custom/model/admin/base/index.html.erb
alchemy-custom-model-0.1.4 app/views/alchemy/custom/model/admin/base/index.html.erb
alchemy-custom-model-0.1.3 app/views/alchemy/custom/model/admin/base/index.html.erb
alchemy-custom-model-0.1.2 app/views/alchemy/custom/model/admin/base/index.html.erb
alchemy-custom-model-0.1.1 app/views/alchemy/custom/model/admin/base/index.html.erb
alchemy-custom-model-0.1.0 app/views/alchemy/custom/model/admin/base/index.html.erb