Sha256: cb03b4da7de8f2589c590cf02410b35c7e6763f87c46bd121bd58968f89094f9

Contents?: true

Size: 1.94 KB

Versions: 6

Compression:

Stored size: 1.94 KB

Contents

<% content_for :page_actions do %>
  <% if @shipment.can_ship? %>
    <li>
      <%= button_link_to t(:ship), fire_admin_order_shipment_path(@order, @shipment, :e => 'ship'), :method => :put, :data => { :confirm => t(:are_you_sure) } %>
    </li>
  <% end %>  
  <li><%= button_link_to t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left' %></li>
<% end %>

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

<% content_for :page_title do %>
  <i class="icon-arrow-right"></i> <%= t(:shipments) %> <i class="icon-arrow-right"></i> #<%= @shipment.number%> (<%= t(@shipment.state.to_sym, :scope => :state_names, :default => @shipment.state.to_s.humanize) %>)
<% end %>

<div data-hook="admin_shipment_edit_header">
  
  <% if @shipment.cost %>
    <h5 class="outstanding-balance"><%= t(:charges) %> <span class="green"><%= @shipment.display_cost %></span></h5>
  <% 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| %>
    <fieldset class="no-border-top">
      <%= render :partial => 'form', :locals => { :shipment_form => shipment_form } %>

      <div data-hook="admin_shipment_edit_form_buttons">
        <div class="filter-actions actions">
          <% if @shipment.editable_by?(try_spree_current_user) %>
            <%= button @order.cart? ? t(:continue) : t(:update), @order.cart? ? 'icon-arrow-right' : 'icon-refresh' %>
            <span class="or"><%= t(:or) %></span>
            <%= button_link_to t(:cancel), admin_order_shipments_path(@order), :icon => 'icon-remove' %>
          <% else %>
            <%= button_link_to t(:back), edit_admin_order_shipment_path(@order), :icon => 'icon-arrow-left' %>
          <% end %>
        </div>
      </div>
    </fieldset>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree_core-1.3.2 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.3.1 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.3.0 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.3.0.rc2 app/views/spree/admin/shipments/edit.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/admin/shipments/edit.html.erb
spree_core-1.3.0.rc1 app/views/spree/admin/shipments/edit.html.erb