.center
  %h1
    =qit "My cart", "Mon panier"

  %table.table
    =render @product_order.product_order_products.order(:product_id)
  
  -if @product_order.vourcher_code
    %div.pull-right
      = "Total articles : " + number_to_currency(@product_order.total_articles_ttc, locale: :fr)
    .clear
    %div.pull-right
      =qit "Code réduction tableau", "Code de réduction "
      ="("+@product_order.vourcher_code.slug+") :"
      =number_to_currency @product_order.vourcher_reduction_ttc
  .clear
  %div.pull-right
    = "Total : " + number_to_currency((@product_order.total_articles_ttc-@product_order.vourcher_reduction_ttc) , locale: :fr)
  .clear

  %center

    =link_to qit("order-button","Commander"), particulars_public_product_orders_path, :class => "btn btn-primary order_button"

  %div
    %br
    %center
      =form_tag vourcher_public_product_orders_path do 
        =qit "Code de réduction label", "Code de réduction :"
        =text_field_tag :vourcher_code
        =submit_tag qit("envoyer le code","Envoyer le code")