   <form method="post" action="{VAL_FORMACTION}" id="calform">
    {HIDDEN_VARS}
<div class="card">
<div class="card-header">
<div class="card-title h5">
{TXT_RULES}
</div>
<div class="card-subtitle text-gray">
{TXT_TARIFFS}
</div>
</div>
<div class="card-body">
<div class="form-group">
<label class="form-label">
{TXT_DEFAULT}
</label>
{VAL_DEFAULT}
<!-- BEGIN list -->
<label class="form-switch">
{TXT_ENABLE}
<input type="checkbox" id="enable_{VAL_WA_METHOD}" name="enable_{VAL_WA_METHOD}" value="0" {VAL_CHECKED} onchange="javascript: return {VAL_WA_METHOD}_enab();" />
<i class="form-icon"></i>
</label>
<label class="form-label">
{TXT_WEBAUTH_DEFAULT}
</label>
{VAL_WEBAUTH_DEFAULT}
<!-- END list -->
<label class="form-label">
{TXT_PAYMENTS}
</label>
<!-- BEGIN payment -->
<label class="form-switch">
{TXT_ENABLE_PAYOP}
<input type="checkbox" id="payment_{VAL_PAY_METHOD}" name="payment_{VAL_PAY_METHOD}" value="0" {VAL_CHECKED} />
<i class="form-icon"></i>
</label>
<!-- END payment -->
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-block">
<button class="btn btn-primary" type="submit">{BTN_SAVE}</button>
</div>
</div>
</div>
  </form>
<script type="text/javascript" language="JavaScript">
//<![CDATA[
<!-- BEGIN func -->

function {VAL_WA_METHOD}_enab() {
    var form = document.getElementById("calform");
    var checkbox = form.elements["enable_{VAL_WA_METHOD}"];
    var flag = !checkbox.checked;
    form.elements["webauth_{VAL_WA_METHOD}"].disabled = flag;
}
{VAL_WA_METHOD}_enab();

<!-- END func -->
//]]>>
</script>
