feat: add portable project export/import ZIP with checksums and atomic restore
This commit is contained in:
@@ -42,6 +42,13 @@
|
||||
<main class="container-fluid container-xxl py-4">
|
||||
<nav class="mb-3"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="/projects/">Проекты</a></li><li class="breadcrumb-item active">{{ project.name }}</li></ol></nav>
|
||||
|
||||
{% if request.query_params.get('imported') %}
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
Проект «{{ project.name }}» успешно импортирован как новый проект.
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Закрыть"></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<header class="mb-4">
|
||||
<!-- Block 1: project title -->
|
||||
<h1 class="h2 mb-2">{{ project.name }}</h1>
|
||||
@@ -96,16 +103,20 @@
|
||||
</header>
|
||||
|
||||
{% if project.status != 'archived' %}
|
||||
<div class="mb-3 d-flex gap-2">
|
||||
<div class="mb-3 d-flex flex-wrap gap-2">
|
||||
<form method="post" action="/projects/{{ project.id }}/archive" class="d-inline">
|
||||
<button type="submit" class="btn btn-outline-warning btn-sm" onclick="return confirm('Архивировать проект? Данные будут сохранены.')">Архивировать</button>
|
||||
</form>
|
||||
<form method="post" action="/projects/{{ project.id }}/delete" class="d-inline" id="delete-project-form">
|
||||
<button type="submit" class="btn btn-outline-danger btn-sm">Удалить проект</button>
|
||||
</form>
|
||||
<a class="btn btn-outline-primary btn-sm" href="/projects/{{ project.id }}/export/project">Экспорт проекта</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-warning mb-3">Проект архивирован. Данные сохранены, проект не считается активным.</div>
|
||||
<div class="alert alert-warning mb-3 d-flex flex-wrap justify-content-between align-items-center gap-2">
|
||||
<span>Проект архивирован. Данные сохранены, проект не считается активным.</span>
|
||||
<a class="btn btn-outline-primary btn-sm" href="/projects/{{ project.id }}/export/project">Экспорт проекта</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<section class="mt-3" aria-live="polite">
|
||||
|
||||
Reference in New Issue
Block a user