first commit
This commit is contained in:
45
web/common/templates/payment.HelloBank.tpl
Normal file
45
web/common/templates/payment.HelloBank.tpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{extends "index.tpl"}
|
||||
|
||||
{block "content"}
|
||||
<div class="page-ordersuccess">
|
||||
{if $payment.order}
|
||||
<h1>{t}Objednávka č.{/t} {$payment.order.order_no}</h1>
|
||||
<p>
|
||||
{* 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>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $body.step >= 0 }
|
||||
{* OK *}
|
||||
{if $body.step == 1}
|
||||
<p class="text-center">
|
||||
Pro dokončení objednávky je nutné ještě vyplnit žádost o spotřebitelský úvěr Hello bank!.
|
||||
Pokračujte prosím kliknutím na tlačítko:
|
||||
</p>
|
||||
{* POST to hellobank *}
|
||||
<form class="text-center" action="{$payment->getGatewayUrl()}" method="post" data-hellobank-form>
|
||||
{foreach $payment->getData() as $key => $value}
|
||||
<input type="hidden" name="{$key}" value="{$value}">
|
||||
{/foreach}
|
||||
<button type="submit" class="btn btn-primary" id="hellobank-payment-button-submit">Vyplnit žádost na Hello bank!
|
||||
</button>
|
||||
</form>
|
||||
<script>document.querySelectorAll('[data-hellobank-form]')[0].submit();</script>
|
||||
|
||||
<div class="cleaner"></div>
|
||||
{*{elseif $body.step == 3}
|
||||
*}{* waiting - created payment *}{*
|
||||
<div class="alert alert-danger" role="alert" style="margin: 20px auto;">
|
||||
{t}Čekáme na potvrzení Vaší platby od platební brány{/t}.
|
||||
</div>
|
||||
<a href="{$payment->getPaymentUrl(4)}" class="">{t}Změnit platební metodu{/t}</a>*}
|
||||
{else}
|
||||
{* Other step, print message *}
|
||||
{$body.message}
|
||||
<br>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user