Sha256: 6915a2612fc1072f5b54aa801d0463f90c79a26fd87dbe748f7d8ccd8d5aa742

Contents?: true

Size: 1.47 KB

Versions: 6

Compression:

Stored size: 1.47 KB

Contents

<h1><%= t(:order) + " #{@order.number}" %></h1>

<% content_for :sidebar do %>
  <div id="order_tab_summary">
    <h3 id="order_number"><%= "#{t(:order)} ##{@order.number} " %></h3>
    <h5 id="order_status"><%= "#{t(:status)}: #{t("order_state.#{@order.state}")}" %></h5>
    <h5 id="order_total"><%= "#{t(:total)}: #{number_to_currency(@order.total)}" %></h5>
    <% if @order.completed? %>
      <h5 id="shipment_status"><%= "#{t(:shipment)}: #{t("shipment_states.#{@order.shipment_state}")}"  %></h5>
      <h5 id="payment_status"><%= "#{t(:payment)}: #{t("payment_states.#{@order.payment_state}")}" %></h5>
    <% end %>
    <br class="clear" />
  </div>
  <br class="clear" />

  <ul class="sidebar">
    <%= hook :admin_order_tabs, {:current => current} do %>
      <% unless @order.completed? %>
        <li<%== ' class="active"' if current == "Order Details" %>>
          <%= link_to t("order_details"), edit_admin_order_url(@order) %>
        </li>
        <li<%== ' class="active"' if current == "Customer Details" %>>
            <%= link_to t("customer_details"), user_admin_order_url(@order) %>
        </li>
      <% else %>
        <li<%== ' class="active"' if current == "Order Details" %>>
          <%= link_to t("order_details"), admin_order_url(@order) %>
        </li>
        <li<%== ' class="active"' if current == "Customer Details" %>>
          <%= link_to t("customer_details"), user_admin_order_url(@order) %>
        </li>
      <% end %>



    <% end %>
  </ul>

<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_suppliers-1.0.4 app/views/admin/shared/_vendor_order_tabs.html.erb
spree_suppliers-1.0.3 app/views/admin/shared/_vendor_order_tabs.html.erb
spree_suppliers-1.0.2 app/views/admin/shared/_vendor_order_tabs.html.erb
spree_suppliers-1.0.1 app/views/admin/shared/_vendor_order_tabs.html.erb
spree_suppliers-0.0.1 app/views/admin/shared/_vendor_order_tabs.html.erb
spree_suppliers-0.60.3 app/views/admin/shared/_vendor_order_tabs.html.erb