Sha256: 6db0802fad9869761c556310e9e0bf32a97285cd9f6d44ebe69ef018a0357f52

Contents?: true

Size: 1.88 KB

Versions: 6

Compression:

Stored size: 1.88 KB

Contents

<% content_for :head do %>
  <%= javascript_include_tag 'spree/backend/product_packages/index.js' %>
<% end %>

<%= render 'spree/admin/shared/correios_tabs', current: 'Product Packages' %>
<%= render 'spree/admin/shared/error_messages', :target => @product_package %>

<% content_for :page_title do %>
  <%= Spree.t(:product_packages) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to(Spree.t(:new_package), new_admin_product_package_url(@product_package), :id => 'new_product_package_link', :class => 'btn-success spree_add_fields pull-right', icon: 'add') %>
<% end %>
<div id="product_packages" data-hook></div>

<% unless @product_packages.any? %>
  <div class="no-objects-found alert alert-info">
    <%= Spree.t(:no_product_package_found) %>,
    <%= link_to(Spree.t(:add_one), spree.new_admin_product_package_path(@product_package)) if can? :create, Spree::Product %>!
  </div>
<% else %>
  <table class="table">
    <thead data-hook="option_header">
      <tr data-hook="product_packages_header">
        <th><%= Spree.t(:length) %></th>
        <th><%= Spree.t(:width) %></th>
        <th><%= Spree.t(:height) %></th>
        <th><%= Spree.t(:weight) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody id="product_packages" data-hook>
      <% @product_packages.each do |package| %>
        <tr id="<%= dom_id(package) %>" data-hook="product_package_row">
          <td><%= package.length %></td>
          <td><%= package.width %></td>
          <td><%= package.height %></td>
          <td><%= package.weight %></td>
          <td class="actions actions-2 text-right">
            <%= link_to_edit package, :no_text => true, :data => {:action => 'edit'} %>
            &nbsp;
            <%= link_to_delete package, { :url => admin_product_package_url(package), :no_text => true }%>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_correios_shipping-1.1.4 app/views/spree/admin/product_packages/index.html.erb
spree_correios_shipping-1.1.3 app/views/spree/admin/product_packages/index.html.erb
spree_correios_shipping-1.1.2 app/views/spree/admin/product_packages/index.html.erb
spree_correios_shipping-1.1.1 app/views/spree/admin/product_packages/index.html.erb
spree_correios_shipping-1.1.0 app/views/spree/admin/product_packages/index.html.erb
spree_correios_shipping-1.0.0 app/views/spree/admin/product_packages/index.html.erb