[{capture append="oxidBlock_content"}]
    [{assign var="currency" value=$oView->getActCurrency()}]
    [{assign var="poolBalance" value=$oxcmp_user->getYSGiftcertPoolAmount()}]
    <h2>[{oxmultilang ident="YS_GIFTCERT_ACCOUNT_HEAD"}]</h2>
    <div>
        <span>[{oxmultilang ident="YS_GIFTCERT_ACCOUNT_CURRENT_BALANCE"}]</span>
        <span>[{oxprice price=$poolBalance currency=$currency}]</span>
    </div>

    [{if $redeemStatus == 1}]
        <div>
        [{oxmultilang ident="YS_GIFTCERT_ACCOUNT_REDEEM_ERROR"}]
        </div>
    [{/if}]
    [{if $redeemStatus == 2}]
        <div>
        [{oxmultilang ident="YS_GIFTCERT_ACCOUNT_REDEEM_SUCCESS"}]
        </div>
    [{/if}]

    <div>
        <h3>[{oxmultilang ident="YS_GIFTCERT_ACCOUNT_REDEEM_HEADER"}]</h3>
        <form action="[{$oViewConf->getSslSelfLink()}]" method="post">
            [{$oViewConf->getHiddenSid()}]
            <input type="hidden" name="cl" value="account_ysgiftcert">
            <input type="hidden" name="fnc" value="redeemGiftcert">
            <input class="form-control" type="text" name="giftcertCode"
                   placeholder="[{oxmultilang ident="YS_GIFTCERT_ACCOUNT_REDEEM_INPUT_PLACEHOLDER"}]">
            <button type="submit" class="btn btn-dark submitButton largeButton float-right">
                [{oxmultilang ident="YS_GIFTCERT_ACCOUNT_REDEEM_BUTTON"}]
            </button>
        </form>
    </div>
[{/capture}]
[{capture append="oxidBlock_sidebar"}]
    [{include file="page/account/inc/account_menu.tpl" active_link="ys_giftcert"}]
[{/capture}]
[{include file="layout/page.tpl" sidebar="Left"}]