first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<div id="st_gift_card">
|
||||
<h3 class="st_title">{__ text="Bon zakupowy"}</h3>
|
||||
{if $gift_cards}
|
||||
<ul id="st_gift_card-list">
|
||||
{foreach item=gift_card from=$gift_cards}
|
||||
<li>{$gift_card.code}: {$gift_card.amount|st_currency_format} <a href="{$gift_card.remove_url}"><img src="{$remove_icon}" alt="{__ text='Usuń bon'}" title="{__ text='Usuń bon'}" /></a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<form action="{$form.action}" method="post">
|
||||
<div id="st_gift_card-form">
|
||||
{if $form.error}
|
||||
<div class="form-error">
|
||||
{$form.error}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="label">
|
||||
<label for="gift_card_code">{__ text="Wprowadź kod"}:</label>
|
||||
</div>
|
||||
<input id="gift_card_code" name="gift_card[code]" type="text" value="{$form.code}" />
|
||||
<input type="hidden" name="gift_card[return_url]" value="{$form.return_url}" />
|
||||
<div class="st_button st_align-right">
|
||||
<div class="st_button-left"><input type="submit" value="{__ text='Aktywuj'}"></div>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,71 @@
|
||||
<div id="st_gift_card" class="roundies box_form" style="margin-bottom:0px;">
|
||||
<h3>{__ text="Bon zakupowy"}</h3>
|
||||
{if $gift_cards}
|
||||
<ul id="st_gift_card-list">
|
||||
{foreach item=gift_card from=$gift_cards}
|
||||
<li>{$gift_card.code}: {$gift_card.amount|st_currency_format} <a href="{$gift_card.remove_url}"><img src="{$remove_icon}" alt="{__ text='Usuń bon'}" title="{__ text='Usuń bon'}"/></a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<form action="{$form.action}" method="post">
|
||||
|
||||
|
||||
|
||||
<div id="st_gift_card-form">
|
||||
{if $form.error}
|
||||
<div class="form-error">
|
||||
{$form.error}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<fieldset>
|
||||
<div class="st_row left">
|
||||
<div class="st_field">
|
||||
<label for="gift_card_code">{__ text="Wprowadź kod"}</label>
|
||||
<input id="gift_card_code" name="gift_card[code]" type="text" value="{$form.code}" />
|
||||
<input type="hidden" name="gift_card[return_url]" value="{$form.return_url}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row left">
|
||||
<div class="st_field">
|
||||
|
||||
<div class="buttons">
|
||||
<button class="regular roundies" type="submit">
|
||||
{__ text="Aktywuj"}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("label").inFieldLabels();
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,43 @@
|
||||
<div id="gift-box">
|
||||
{if $gift_cards}
|
||||
{if $form.error}
|
||||
<div class="form-group">
|
||||
<div class="bg-danger">
|
||||
{__ text=$form.error}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
{foreach item=gift_card from=$gift_cards}
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<b>{$gift_card.code}</b> <a class="primary" href="{$gift_card.remove_url}"><span class="glyphicon glyphicon-remove-circle"></span></a>:
|
||||
</div>
|
||||
<div class="col-xs-4 text-right">
|
||||
{$gift_card.amount|st_currency_format}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
<form action="{$form.action}" method="post">
|
||||
{if $form.error}
|
||||
<div class="form-group">
|
||||
<div class="bg-danger">
|
||||
{__ text=$form.error}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group input-group">
|
||||
|
||||
<input class="form-control" placeholder="{__ text='Wprowadź kod bonu'}" id="gift_card_code" name="gift_card[code]" type="text" value="{$form.code}" />
|
||||
<input type="hidden" name="gift_card[return_url]" value="{$form.return_url}" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit">
|
||||
{__ text="Aktywuj"}
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
Reference in New Issue
Block a user