forked from FrederikBaerentsen/BrickTracker
11 lines
831 B
HTML
11 lines
831 B
HTML
{% import 'macro/accordion.html' as accordion %}
|
|
|
|
{{ accordion.header('Database danger zone', 'database-danger', 'admin', expanded=true, danger=true, class='text-end') }}
|
|
<form action="{{ url_for('admin.do_delete_database') }}" method="post">
|
|
{% if error %}<div class="alert alert-danger text-start" role="alert"><strong>Error:</strong> {{ error }}.</div>{% endif %}
|
|
<div class="alert alert-danger text-center" role="alert">You are about to <strong>delete the database file</strong>. This action is irreversible.</div>
|
|
<a class="btn btn-danger" href="{{ url_for('admin.admin') }}" role="button"><i class="ri-arrow-left-long-line"></i> Back to the admin</a>
|
|
<button type="submit" class="btn btn-danger"><i class="ri-delete-bin-2-line"></i> Delete <strong>the database file</strong></button>
|
|
</form>
|
|
{{ accordion.footer() }}
|