mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-06 20:00:48 +00:00
Update admin user delete view
This commit is contained in:
parent
9be19ad880
commit
fae0475083
1 changed files with 17 additions and 3 deletions
|
@ -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 a new issue