{if $smarty.session.Kunde->sdDigitalMoneyCount > 0}
    <form id="basket-credit-form" method="post" action="{$sdDigitalMoneyUrl}">
        {block name="basket-digital-money"}
            <div id="digital-money" class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">{$sdDigitalTranslations.digitalMoneyUseDigitalMoney}</h4>
                </div>
                <div class="panel-body">
                    <fieldset>
                        <div class="row">
                            <div class="col-xs-6">
                                <p class="alert alert-info credit-amount-description text-center">
                                    {$sdDigitalTranslations.digitalMoneyBasketTitle}
                                    <strong class="credit-amount">{$smarty.session.Kunde->sdDigitalMoneyCount}</strong>
                                    {$sdDigitalTranslations.digitalMoneyFor}
                                    <strong class="credit-amount">{$smarty.session.Kunde->sdDigitalMoney}</strong>
                                </p>
                            </div>
                            <div class="col-xs-6">
                                <div class="row">
                                    <div class="col-xs-6 alert">
                                        <p> {$sdDigitalTranslations.digitalMoneyBasketDesc}</p>
                                    </div>
                                    <div class="col-xs-6 form-group top10">
                                        <span class="input-group">
                                            <input type="number" class="form-control" name="bonus-count" min="0.01"
                                                   max="{$smarty.session.Kunde->sdDigitalMoneyCount}"
                                                   step="0.01"
                                                   value="{$smarty.session.Kunde->sdDigitalMoneyCount}"/>
                                            <span class="input-group-btn">
                                                 {$jtl_token}
                                                <input type="hidden" name="applyDigitalMoney" value="1"/>
                                                <input type="submit" id="sd-apply-bonusguthaben" name="submit" value="{$sdDigitalTranslations.digitalMoneyButtonText}"
                                                       data-action="{$sdDigitalMoneyUrl}"
                                                       class="btn btn-default">
                                            </span>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                </div>
            </div>
        {/block}
    </form>
{/if}