48 lines
1.8 KiB
Smarty
48 lines
1.8 KiB
Smarty
{extends "index.tpl"}
|
|
|
|
{block "content"}
|
|
<div class="page-ordersuccess">
|
|
{if $payment.order}
|
|
<h1>{t}Objednávka č.{/t} {$payment.order.order_no}</h1>
|
|
|
|
<div>
|
|
{* nechci aby to bylo tlacitko pokud neprobehne platba, nemelo by to rozptylovat od tlacitka "prejit na plat. branu *}
|
|
<a class="{if $body.step == -2}btn btn-primary{/if}" href="{$payment->order->getDetailUrl()}">{t}Zobrazit detail objednávky{/t}</a>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $body.step >= 0 }
|
|
{* OK *}
|
|
{if $body.step == 1}
|
|
{* Submit script *}
|
|
{* pokud neproběhne automatický redirect *}
|
|
<a href="{$payment->getStepUrl(1)}" class="btn btn-primary" style="font-size: 1.5em; font-weight: 700;">{t}Přejít na platební bránu{/t}</a>
|
|
{else}
|
|
{* Other step, print message *}
|
|
{$body.message} <br>
|
|
{/if}
|
|
|
|
{elseif $body.step == -1}
|
|
{* Finish Error *}
|
|
<div class="alert alert-danger" role="alert" style="margin: 20px auto;">
|
|
{t}Vyskytla se chyba při platbě{/t}: {$body.message}
|
|
</div>
|
|
<a href="{$payment->getStepUrl(1)}" class="btn btn-primary" style="font-size: 1.5em; font-weight: 700;">{t}Přejít na platební bránu{/t}</a>
|
|
|
|
{elseif $body.step == -2}
|
|
{* Finish OK *}
|
|
<div class="alert alert-success" role="alert" style="margin: 20px auto;">
|
|
{$body.message}
|
|
</div>
|
|
|
|
{elseif $body.step == -3}
|
|
{* Finish Cancel *}
|
|
<div class="alert alert-danger" role="alert" style="margin: 20px auto;">
|
|
{t}Platba byla stornována{/t}.
|
|
</div>
|
|
<a href="{$payment->getStepUrl(1)}" class="btn btn-primary" style="font-size: 1.5em; font-weight: 700;">{t}Přejít na platební bránu{/t}</a>
|
|
{/if}
|
|
</div>
|
|
{/block}
|
|
|