<% content_for :head do %> <%= javascript_include_tag 'checkout', '/states' %> <% end %>

<%= t("checkout")%>

<%= checkout_progress %>
<%= render "shared/error_messages", :target => @order %> <%= hook :checkout_summary_box do %> <% if @order.state != 'confirm' %>
<%= render 'summary', :order => @order %>
<% end %> <% end %> <%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %> <%= render @order.state, :form => form %> <% end %>