%= title t(:order, scope: "activerecord.models.mechanize_store").pluralize %>
<%= sort_link(@search, :id, t(:id, scope: "activerecord.attributes") ) %> | <%= sort_link(@search, :order_status_id, t(:order_status_id, scope: "activerecord.attributes.mechanize_store/order") ) %> | <%= sort_link(@search, :order_payment_payment_status_name, t(:payment_status_id, scope: "activerecord.attributes.mechanize_store/payment") ) %> | <%= sort_link(@search, :generated_at, t(:generated_at, scope: "activerecord.attributes.mechanize_store/order") ) %> | <%= sort_link(@search, :delivery_date, t(:delivery_date, scope: "activerecord.attributes.mechanize_store/order") ) %> | <%= sort_link(@search, :created_at, t(:created_at, scope: "activerecord.attributes.mechanize_store/order") ) %> | <%= t(:options, scope: "activerecord.attributes.order") %> |
---|---|---|---|---|---|---|
<%= order.id %> | <%= order.order_status.name %> | <%= order.payment.payment_status.name %> | <%= l(order.generated_at) unless order.generated_at.nil? %> | <%= l(order.delivery_date) unless order.generated_at.nil? %> | <%= l(order.created_at) unless order.created_at.nil? %> | <%= link_to admin_order_path(order) do %> <% end %> |