<script type="text/javascript" language="JavaScript">
//<![CDATA[
function validateAndSubmitForm(form)
{
if (
checkNumbers(form.elements["num_users"], "{TXT_AMOUNT}") &&
checkFloat(form.elements["users_deposit"], "{TXT_SUM_ON_CARD}")
)
    return form.submit();
return false;
}

//]]>
</script>

<form method="post" action="{VAL_FORMACTION}" enctype="multipart/form-data" name="calform">
{HIDDEN_VARS}
<div class="card">
<div class="card-header">
</div>
<div class="card-body">
<div class="form-group">
<label class="form-label" for="start_user">
{TXT_PREFIX}
</label>
<input class="form-input" type="text" name="user_prefix" id="user_prefix" placeholder="{TXT_PREFIX}" value="" />
<label class="form-label" for="start_user">
{TXT_FNUMBER}</label>
<input class="form-input" type="number" name="start_user" id="start_user" value="1" min="1" />
<label class="form-label" for="num_users">
{TXT_AMOUNT}&nbsp;*
</label>
<input class="form-input" type="number" name="num_users" id="num_users" value="0" placeholder="{TXT_AMOUNT}" />
<label class="form-label" for="users_deposit">
{TXT_SUM_ON_CARD}&nbsp;*
</label>
<input class="form-input" type="text" name="users_deposit" id="users_deposit" value="0" placeholder="{TXT_SUM_ON_CARD}" />
<label class="form-label">
{TXT_TARIFF}
</label>
{TXT_GET_TARIFF}
<label class="form-label" for="card_descr">
{TXT_DESC}
</label>
<input class="form-input" type="text" name="card_descr" id="card_descr" placeholder="{TXT_DESC}" />
<label class="form-label">
{TXT_UPLOAD_FILE}
</label>
<input class="form-input" type="file" name="file" placeholder="{TXT_UPLOAD_FILE}" />
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-block">
<button class="btn btn-primary" onclick="javascript: return validateAndSubmitForm(this.form);" >{BTN_SAVE}</button>
</div>
</div>
</div>
</form>
