Sha256: 236b617a70c35e602535c85522fe2668bd45e8d55aba64177c57c04a9aea897b

Contents?: true

Size: 1.51 KB

Versions: 30

Compression:

Stored size: 1.51 KB

Contents

<% content_for :page_title do %>
  <%= Spree.t(:"admin.user.stores") %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:add_store), spree.new_admin_store_path(@user), class: "btn-success", icon: 'add' if can?(:create, Spree::Store) %>
<% end %>

<% if @stores.any? %>
  <table class="table">
    <thead>
      <th><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:url) %></th>
      <th data-hook="admin_stores_index_header_actions" class="actions"></th>
    <thead>
    <tbody>
      <% @stores.each do |store| %>
        <tr>
          <td><%= store.name %></td>
          <td><%= store.url %></td>
          <td class="actions actions-2 text-center" data-hook="admin_stores_index_row_actions">
            <% if store.default %>
              <%= button_link_to(Spree.t(:store_default), '#', class: 'btn-success btn-sm') %>
            <% else %>
              <%= button_link_to(Spree.t(:store_set_default_button), spree.set_default_admin_store_path(store), method: :post, class: 'btn-default btn-sm') if can?(:edit, store) %>
            <% end %>
            <%= link_to_edit_url spree.edit_admin_store_path(store), no_text: true if can?(:edit, store) %>
            <%= link_to_delete store, no_text: true, url: spree.admin_store_path(store) if can?(:destroy, store) %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCredit)) %>
  </div>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
spree_backend-3.7.14.1 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.14 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.13 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.12 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.11 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.10 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.9 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.8 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.7 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.6 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.5 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.4 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.3 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.2 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.1 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.0 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.0.rc2 app/views/spree/admin/stores/index.html.erb
spree_backend-3.7.0.rc1 app/views/spree/admin/stores/index.html.erb
spree_backend-3.6.6 app/views/spree/admin/stores/index.html.erb