php-mpos/templates/bluemoon/account/edit/cashout.tpl
2016-07-06 14:37:49 +02:00

64 lines
3.6 KiB
Smarty

{if !$GLOBAL.config.disable_payouts && !$GLOBAL.config.disable_manual_payouts}
<form action="{$smarty.server.SCRIPT_NAME}" method="post" role="form">
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
<input type="hidden" name="do" value="cashOut">
<div class="col-lg-6">
<div class="widget">
<div class="widget-header">
<div class="title">
Cash Out
</div>
<span class="tools">
<i class="fa fa-money"></i>
</span>
</div>
<div class="widget-body">
<div class="row">
<div class="col-lg-12">
<div class="form-group">
<p style="padding-left:3px; padding-redight:30px; font-size:10px;">
{if $GLOBAL.config.txfee_manual > 0}Please note: a {if $GLOBAL.config.txfee_manual > 0.00001}{$GLOBAL.config.txfee_manual}{else}{$GLOBAL.config.txfee_manual|number_format:"8"}{/if} {$GLOBAL.config.currency} transaction will apply when processing "On-Demand" manual payments <span id="tt"><img width="15px" height="15px" title="This {if $GLOBAL.config.txfee_manual > 0.00001}{$GLOBAL.config.txfee_manual}{else}{$GLOBAL.config.txfee_manual|number_format:"8"}{/if} manual payment transaction fee is a network fee and goes back into the network not the pool." src="site_assets/bootstrap/images/questionmark.png"></span>{/if}
</p>
<p style="padding-left:3px; padding-redight:30px; font-size:10px;">
Minimum Cashout: {$GLOBAL.config.mp_threshold} {$GLOBAL.config.currency}
</p>
</div>
<div class="form-group">
<label>Account Balance</label>
{nocache}<input class="form-control" id="disabledInput" type="text" value="{$GLOBAL.userdata.balance.confirmed|escape}" {$GLOBAL.config.currency} disabled />{/nocache}
</div>
<div class="form-group">
<label>Payout to</label>
{nocache}<input class="form-control" id="disabledInput" type="text" value="{$GLOBAL.userdata.coin_address|escape}" disabled />{/nocache}
</div>
<div class="form-group">
<label>4 Digit PIN</label>
<input class="form-control" type="password" name="authPin" size="4" maxlength="4" />
</div>
</div>
</div>
{nocache}
<input type="hidden" name="wf_token" value="{$smarty.request.wf_token|escape|default:""}">
<input type="hidden" name="ctoken" value="{$CTOKEN|escape|default:""}" />
<input type="hidden" name="utype" value="withdraw_funds">
{if $GLOBAL.twofactor.enabled && $GLOBAL.twofactor.options.withdraw}
{if $GLOBAL.userdata.balance.confirmed|escape < $GLOBAL.config.mp_threshold}
<input type="submit" value="Unlock" class="btn btn-warning btn-sm" name="unlock" disabled="disabled">
{elseif $WITHDRAWSENT == 1 && $WITHDRAWUNLOCKED == 1}
<input type="submit" value="Cash Out" class="btn btn-success btn-sm">
{elseif $WITHDRAWSENT == 0 && $WITHDRAWUNLOCKED == 1 || $WITHDRAWSENT == 1 && $WITHDRAWUNLOCKED == 0}
<input type="submit" value="Cash Out" class="btn btn-danger btn-sm" disabled="disabled">
{elseif $WITHDRAWSENT == 0 && $WITHDRAWUNLOCKED == 0}
<input type="submit" value="Unlock" class="btn btn-warning btn-sm" name="unlock">
{/if}
{else}
<input type="submit" value="Cash Out" class="btn btn-success btn-sm">
{/if}
{/nocache}
</div>
</div>
</div>
</form>
{/if}