41 lines
2.0 KiB
Smarty
41 lines
2.0 KiB
Smarty
<div data-reload="product_question" class="review-form">
|
|
|
|
{if $body.error}
|
|
<div class="alert alert-danger">
|
|
{$body.error}
|
|
</div>
|
|
{/if}
|
|
|
|
<div>
|
|
{if $ctrl.logged}
|
|
<p class="title">{t}Jste přihlášeni jako{/t} </strong>{$ctrl.user.name} {$ctrl.user.surname}</p>
|
|
<p>{t}Bohužel jsme tento produkt ve vašich objednávkách nenašli, proto nemůžete vložit ověřenou recenzi.{/t}</p>
|
|
{if $dbcfg.review_verified_only != "Y"}
|
|
<a href="{path('kupshop_catalog_reviews_productreview', ['id' => $body.product.id])}" class="btn btn-primary" data-ondemand>{t}Vložit neověřenou recenzi{/t}</a>
|
|
{/if}
|
|
{else}
|
|
<p class="title">{t}Přihlaste se prosím do svého účtu{/t}</p>
|
|
<a href="{url s=login}" class="btn btn-primary cart-signin">{t}Přihlásit se{/t}</a>
|
|
{/if}
|
|
<p class="separator"><span>{t}nebo{/t}</span></p>
|
|
<p class="title">{t}Nakupovali jste bez registrace?{/t}</p>
|
|
<form name="review" method="post" action="{path('kupshop_catalog_reviews_productreview', ['id'=>$body.product.id])}">
|
|
<input type="hidden" name="acn" value="verifyOrder">
|
|
<div class="form-group required">
|
|
<input type="email" name="email" class="form-control" required
|
|
value="{$body.data.email}" placeholder="{t}E-mailová adresa{/t}">
|
|
</div>
|
|
<div class="form-group required">
|
|
<input type="text" name="order_no" class="form-control" required
|
|
value="{$body.data.order_no}" placeholder="{t}Číslo objednávky{/t}">
|
|
</div>
|
|
<button type="submit" name="rSubmit" class="btn btn-primary">{t}Načíst objednávku{/t}</button>
|
|
</form>
|
|
{if !$ctrl.logged and $dbcfg.review_verified_only != "Y"}
|
|
<p class="unverified-review-link">
|
|
<a href="{path('kupshop_catalog_reviews_productreview', ['id' => $body.product.id])}" data-ondemand>{t}Vložit neověřenou recenzi{/t}</a>
|
|
</p>
|
|
{/if}
|
|
</div>
|
|
</div>
|