first commit
This commit is contained in:
48
web/common/templates/payment.Saferpay.tpl
Normal file
48
web/common/templates/payment.Saferpay.tpl
Normal file
@@ -0,0 +1,48 @@
|
||||
{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->getPaymentUrl()}" 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->getPaymentUrl()}" 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->getPaymentUrl()}" 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}
|
||||
|
||||
Reference in New Issue
Block a user