forked from mirror/pixelfed
Update admin user delete view
This commit is contained in:
parent
9be19ad880
commit
fae0475083
|
@ -49,12 +49,26 @@
|
||||||
<div class="card card-body">
|
<div class="card card-body">
|
||||||
<p class="lead text-center py-5">Are you sure you want to delete this account?</p>
|
<p class="lead text-center py-5">Are you sure you want to delete this account?</p>
|
||||||
<p class="mb-0">
|
<p class="mb-0">
|
||||||
<form method="post">
|
<form method="post" id="deleteForm">
|
||||||
@csrf
|
@csrf
|
||||||
<button type="submit" class="btn btn-danger btn-block font-weight-bold">DELETE ACCOUNT</button>
|
<button type="button" id="confirmDelete" class="btn btn-danger btn-block font-weight-bold">DELETE ACCOUNT</button>
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script type="text/javascript">
|
||||||
|
$('#confirmDelete').click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
if(window.confirm('Are you sure you want to delete this account?') == true) {
|
||||||
|
if(window.confirm('Are you absolutely sure you want to delete this account?') == true) {
|
||||||
|
$('#deleteForm').submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
@endpush
|
Loading…
Reference in New Issue