2022-11-19 01:02:13 +00:00
|
|
|
<div class="modal fade" id="confirm-purge" tabindex="-1">
|
2021-07-01 14:25:41 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header bg-danger">
|
2022-11-19 01:02:13 +00:00
|
|
|
<h5 class="modal-title">WARNING: Purging record</h5>
|
2021-07-01 14:25:41 +00:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2022-11-19 01:02:13 +00:00
|
|
|
<p>This action is irreversible. Are you sure, your sure, that you want to purge it?</p>
|
2021-07-01 14:25:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
2022-11-19 01:02:13 +00:00
|
|
|
<a type="button" class="btn btn-danger btn-ok">Purge</a>
|
2021-07-01 14:25:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
<script>
|
2022-11-19 01:02:13 +00:00
|
|
|
var confirmpurge = new bootstrap.Modal(document.getElementById('confirm-purge'), {});
|
2021-07-01 14:25:41 +00:00
|
|
|
|
|
|
|
$(document).ready(function() {
|
2022-11-19 01:02:13 +00:00
|
|
|
$('.purge').click(function(e) {
|
|
|
|
confirmpurge.show();
|
|
|
|
$('#confirm-purge').find('.btn-ok').attr('href',e.currentTarget.href);
|
2021-07-01 14:25:41 +00:00
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|