librenms/html/pages/bill/delete.inc.php
2016-03-08 18:21:29 +00:00

43 lines
1.3 KiB
PHP

<form name="form1" action="" method="post" class="form-horizontal">
<script type="text/javascript">
function showWarning(checked) {
$('#warning').toggle();
if (checked) {
$('#deleteBtn').removeAttr('disabled');
} else {
$('#deleteBtn').attr('disabled', 'disabled');
}
}
</script>
<input type="hidden" name="action" value="delete_bill">
<div class="row">
<div class="col-md-8 col-md-push-2">
<div class="alert alert-danger alert-block">
<h4>Delete Bill</h4>
<div class="control-group">
<label class="control-label" for="confirm"><strong>Confirm</strong></label>
<div class="controls">
<div class="checkbox">
<label>
<input type="checkbox" name="confirm" value="confirm" onchange="javascript: showWarning(this.checked);">
Yes, please delete this bill!
</label>
</div>
</div>
</div>
<br>
<div class="alert alert-danger" id="warning" style="display: none;">
<h4 class="alert-heading"><i class="fa fa-exclamation-triangle"></i> Warning</h4>
You are about to delete this bill.
</div>
<div class="form-actions">
<button id="deleteBtn" type="submit" class="btn btn-danger" disabled="disabled"><i class="fa fa-trash"></i> <strong>Delete Bill</strong></button>
</div>
</div>
</div>
</div>
</form>