mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-08-06 10:44:00 +00:00
Resolves #28
This commit is contained in:
@@ -141,9 +141,9 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if current_user.id != account_data.id and current_user.gm_level > 3 %}
|
||||
{% if current_user.id != account_data.id and current_user.gm_level > 3 %}
|
||||
<hr class="bg-primary"/>
|
||||
<div class="row">
|
||||
<div class="col text-center">
|
||||
@@ -191,6 +191,42 @@
|
||||
Mute for 1 year
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if current_user.gm_level == 9 %}
|
||||
<button type="button" class="btn btn-danger btn-block" data-toggle="modal" data-target="#deleteModal">
|
||||
Delete Account
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if current_user.gm_level == 9 %}
|
||||
{# delete Modal #}
|
||||
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="deleteModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content bg-dark">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title" id="deleteModalLabel">
|
||||
Permanently Delete this Account?
|
||||
</h1>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h2> This can NOT be undone! </h2>
|
||||
<br/>
|
||||
This user is a GM {{account_data.gm_level}} !!!<br/>
|
||||
This will delete their everything, including but not limited to:<br/>
|
||||
Properties, Audit Logs, Bug Reports, and Invitations!
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a role="button" class="btn btn-danger btn-block"
|
||||
href='{{ url_for('accounts.delete', id=account_data.id) }}'>
|
||||
Permanently Delete
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user