feat: add atomic database reset that wipes project data while keeping schema
This commit is contained in:
@@ -11,10 +11,18 @@
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h1>Projects</h1>
|
||||
<div class="d-flex gap-2">
|
||||
<a href="/projects/settings/database-reset" class="btn btn-outline-danger">Сброс базы</a>
|
||||
<a href="/projects/import" class="btn btn-outline-primary">Импорт проекта</a>
|
||||
<a href="/projects/new" class="btn btn-primary">+ Новый проект</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if request.query_params.get('reset') %}
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
Все данные проекта успешно удалены.
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Закрыть"></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
Reference in New Issue
Block a user