Sha256: 0130ab76b18272fd56c610963458d4948d4421766cb173779e5f03e7f8084a6a

Contents?: true

Size: 1.61 KB

Versions: 20

Compression:

Stored size: 1.61 KB

Contents

<div class="toolbar" data-hook="toolbar">
  <ul class="actions" data-hook="admin_shipment_edit_buttons">
    <li>
      <% if @shipment.can_ship? %>
        <%= button_link_to t(:ship), fire_admin_order_shipment_path(@order, @shipment, :e => 'ship'), :method => :put, :confirm => t(:are_you_sure) %>
      <% end %>
    </li>
  </ul>
  <br class="clear" />
</div>

<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Shipments' } %>

<div data-hook="admin_shipment_edit_header">
  <h2><%= t(:shipment) %> #<%= @shipment.number%> (<%= t(@shipment.state.to_sym, :scope => :state_names, :default => @shipment.state.to_s.humanize) %>)</h2>
  <% if @shipment.cost %>
    <h3><%= t(:charges) %> <%= number_to_currency @shipment.cost %></h3>
  <% end %>

  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @shipment } %>
</div>

<div data-hook="admin_shipment_edit_form">
  <%= form_for @shipment, :url => admin_order_shipment_path(@order, @shipment), :method => :put do |shipment_form| %>
      <%= render :partial => 'form', :locals => { :shipment_form => shipment_form } %>

      <div data-hook="admin_shipment_edit_form_buttons">
        <p class="form-buttons">
          <% if self.respond_to?(:current_user) && @shipment.editable_by?(current_user) %>
            <%= button @order.cart? ? t(:continue) : t(:update) %>
            <%= t(:or) %> <%= link_to t(:cancel), admin_order_shipments_path(@order) %>
          <% else %>
            <%= link_to raw("&laquo; #{t(:back)}"), edit_admin_order_shipment_path(@order) %>
          <% end %>
        </p>
      </div>
  <% end %>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.5 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.7 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.4 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.3 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.6 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.2 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.2.rc1 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.1 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.0 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.4 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.0.rc2 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.1.0.rc1 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.3 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.2 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.1 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.0 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.0.rc3 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.0.0.rc2 app/views/spree/admin/shipments/edit.html.erb