.main_wrapper.general_padding
  =render :partial => "public/p_orders/menu" if params[:for_order]

  .main_center

    .container
      .row
        .col-md-6


          .connexion_form
            %h2
              =qit('already-client', 'Déjà client ?')

            = form_tag public_p_customer_auths_path, {:class => "formtastic"} do
              =hidden_field_tag :for_order, params[:for_order]

              %fieldset.inputs
                .form-group

                  = label_tag :email, "Email :"

                  = text_field_tag :email, params[:email], :class => "form-control", :placeholder => "Email"

                .form-group
                  = label_tag :password, qit('password', "Mot de passe :")
                  = password_field_tag :password, "", :class => "form-control", :placeholder => qit('password')

                .form-group{:style => "text-align:center"}
                  =check_box_tag :remember_me, 1,params[:remember_me], :style => "display:inline-block;width:auto;"
                  = label_tag :remember_me, qit('remember-me', "Rester connecté ?"), :style => "display:inline-block;"

              %p{:style => "text-align:center"}

                = submit_tag qit('log-in', "Se connecter"), :class => "btn btn-primary"
              %p{:style => "text-align:center"}
                =link_to qit("lost-password","Mot de passe perdu ?"), password_reset_public_p_customer_auths_path(:for_order => params[:for_order]), :class => "shop"


        .col-md-6
          .align_center
            %h2
              =qit('not-client', 'Pas encore client ?')

            %br
            %br
            =link_to qit('create-account', "Créer mon compte"), new_public_p_customer_path(:for_order => true), :class => "btn btn-primary"

          =#render :partial => "public/p_customers/new_form"
