This commit is contained in:
Aaron Kimbre
2022-05-11 12:49:42 -05:00
parent 1dbb637053
commit 1dbe0ce980
2 changed files with 94 additions and 3 deletions

View File

@@ -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">&times;</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 %}