{*specifique prosveta.ch *}
<div class="order order_3">
    {$Order->showSteps()}
    <p style="clear: both">&nbsp;</p>

    <h1>{$Page->translate('Commande N')} {$Order->getOrderId(true)}</h1>

    {include file=$localizer->getPath("order_cart_complete.part.tpl")}

    <form method="POST" action="order" class="wide">
        {if $codepromo }
            <div id="codepromo-wrapper">
                <label id="codepromo-label" for="codepromo">{$codepromo} :</label>
                <input id="codepromo" type="text" maxlength="32" name="order_codepromo" placeholder="{$codepromo}"
                       value="{$Order->codepromo}">
            </div>
        {/if}

        <h2>{$Page->translate('Vos coordonnées')}</h2>
        <div id="addresses">
            <div id="invoice">
                <h3>{$trad.strInvoice}</h3>
                {$Order->fct_firstname}&nbsp;{$Order->fct_name}<br/>
                {nl2br($Order->fct_address)}<br/>
                {$Order->fct_state} {$Order->fct_zip} {$Order->fct_city}<br/>
                {$Order->getCountryName('fct_country')}<br/>
                {$trad.strEmail}: {mailto address=$Order->email}<br/>
                {$trad.strPhone}: {$Order->fct_phone}
                <br/><br/>


                <a class="button" href="order?step=2">{$trad.Modifier}</a>
            </div>

            <div id="delivery">
                <h3>{$trad.youraddress}</h3>
                {$Order->firstname}&nbsp;{$Order->name}<br/>
                {nl2br($Order->address)}<br/>
                {$Order->state} {$Order->zip} {$Order->city}<br/>
                {$Order->getCountryName('country')}<br/>
                {$trad.strPhone} {$Order->phone}
                <br/><br/><br/>
                <a class="button" href="order?step=2">{$trad.Modifier}</a>
            </div>
        </div>

        <p class="clearfix">&nbsp;</p>


        {*subscribe *}
        {if $Page->existsContent('ordersubscribe') && !$Page->isSubscribe()}
            <h2>{$Page->getPart("ordersubscribe", false)}</h2>
            {$Page->getPart("ordersubscribe")}
            <div style="padding-left: 30px; margin-bottom: 1rem;">
                <input id="subscribe_email" type="hidden" name="subscribe[email]" value="{$Order->email}">
                {if !$Page->isSubscribe('prosveta_'|cat:$Language.code)}
                    <input id="subscribe_thought" type="checkbox" value="1" class="subscribe" name="subscribe[thought]">
                    &nbsp;{$Page->translate('prosveta_fr')}
                    <input type="hidden" value="prosveta_{$Language.code}" name="subscribe[list]">
                    <br/>
                {/if}
                {if !$Page->isSubscribe('prosveta_com')}
                    <input id="subscribe_news" type="checkbox" value="1" class="subscribe" name="subscribe[news]">
                    &nbsp;{$Page->translate('prosveta_com')}
                    <br/>
                {/if}
            </div>
        {/if}


        <div id="port-wrapper">
            <h2>{$Page->translate("Conditions envoi")}</h2>
            <div id="port">
                {$widget->get("part","code=order_port:title=0")}
            </div>
        </div>
        <div id="commnt-wrapper">
            <h2>{$Page->translate('Vos commentaires')}</h2>
            <div id="comment">
                <textarea name="order_comments" id="order_comments" style="width: 100%;">{$Order->comments}</textarea>
            </div>
        </div>

        <div id="choosepayment">
            {if $Order->getShipping()==-1}
                {* Nous consulter *}
                <h2>{$trad.consultus}</h2>
                {if $Order->getOrderType()==2}
                    {$widget->get("part","code=consultus_mixed:title=0")}
                {else}
                    <input type="hidden" name="action" value="validorder"/>
                    <input type="hidden" name="order_id" value="{$Order->getOrderId()}"/>
                    <input type="hidden" name="mode" value="consultus"/>
                    {$widget->get("part","code=consultus:title=0")}
                {/if}


            {else}
                <h2>{$Page->translate('Choisir un mode de paiement')}</h2>
                <input type="hidden" value="4" name="step">
                <input type="hidden" value="pay" name="action">
                {foreach $Order->getPaymentList(true) key=mode item=value}
                    <p>
                        <input type="radio" id="{$mode}" value="{$mode}" maxlength="40" name="mode">
                        <label for="{$mode}">{$value}</label>
                    </p>
                {/foreach}
                <div id='paymentmode'>{$widget->get("part","code=paymentmode:title=0")}</div>
            {/if}
        </div>

        {* Bouton "Continuer" cas international et order mixte *}
{*        {if $Order->getShipping()!=-1 or $Order->getOrderType()==1}*}
            <div class="text-cg">{$trad.strAccepted} <input type="checkbox" id="cg" name="cg"></div>
            <div class="text-voir-cg" id="cg">{$trad.seeCG}</div>
            <div id="next">
                <input type="submit" value="{$Page->translate('Suivant')}" id="btn-next" class="button" disabled/>
            </div>
{*        {/if}*}

    </form>

    <p>&nbsp;</p>

    <div class="info">
        {$widget->get("part","code=order_3:title=0")}
    </div>
</div>
<div id="dialog-cg" style="display: none">
    {$widget->get('part','code=CG:title=1')}
</div>
<script>
    var ga_page = folder + 'order/choosepaiement';
</script>