Fix the Abatement flag issue, remove the default checked setting and
only set the abatement attribute value to true if it is selected.
Issue-ID: CLAMP-378
Change-Id: I52b176297bc0042f6c83cfc30331ef9ca8830c98
Signed-off-by: xg353y <xg353y@intl.att.com>
<label for="abatement" class="col-sm-2">Abatement</label>
<div class="col-sm-3" style="padding: 0px;">
<label for="abatement" class="col-sm-2">Abatement</label>
<div class="col-sm-3" style="padding: 0px;">
- <input type="checkbox" id="abatement" name="abatement"
- checked="true" class="form-control">
+ <select class="form-control" id="abatement" name="abatement">
+ <option value="0" selected>No</option>
+ <option value="1">Yes</option>
+ </select>
</div>
</div>
<div class="form-group clearfix row">
</div>
</div>
<div class="form-group clearfix row">
console.log("load properties to op policy");
// Set the header
$.each($('#operationalPolicyHeaderForm').find('.form-control'), function() {
console.log("load properties to op policy");
// Set the header
$.each($('#operationalPolicyHeaderForm').find('.form-control'), function() {
$(this).val(allPolicies['operational_policy']['controlLoop'][this.id]);
});
// Set the sub-policies
$(this).val(allPolicies['operational_policy']['controlLoop'][this.id]);
});
// Set the sub-policies