Sha256: 4eb63b78cfb900d538bb48229cd92e771edaa0e9fcba0877d0344cf3ba7900eb

Contents?: true

Size: 1.25 KB

Versions: 11

Compression:

Stored size: 1.25 KB

Contents

<%
  buttons = []

  buttons << {
      icon: "angle-double-left ",
      label: acm_t(:title_action, action: acm_t(:index, scope: :actions), model: base_class.model_name.human),
      url: polymorphic_path(url_namespace),
      title: acm_t(:title_action, action: acm_t(:index, scope: :actions), model: base_class.model_name.human),
      hotkey: 'alt+b',
      dialog: false,
      if_permitted_to: [:index, @obj.class]
  }

  if exist_order_path? @obj
    buttons << {
        icon: :random,
        label: acm_t(:title_action, action: acm_t(:order, scope: :actions), model: base_class.model_name.human),
        url: order_path(@obj),
        title: acm_t(:title_action, action: acm_t(:order, scope: :actions), model: base_class.model_name.human),
        hotkey: 'alt+n',
        dialog: false,
        if_permitted_to: [:order, base_class]
    }
  end

%>


<% toolbar(
       buttons: buttons,
       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

11 entries across 11 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-3.1.5 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-3.1.4 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-3.1.3 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-3.1.2 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-3.1.1 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-3.1.0 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-2.2.2 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-3.0.0 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-2.2.1 app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
alchemy-custom-model-2.2.0 app/views/alchemy/custom/model/admin/base/show.html.erb