feat: add portable project export/import ZIP with checksums and atomic restore
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Импорт проекта — Work Volume Tracker</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body class="bg-light">
|
||||
<main class="container py-4">
|
||||
<nav class="mb-3"><ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="/projects/">Проекты</a></li>
|
||||
<li class="breadcrumb-item active">Импорт проекта</li>
|
||||
</ol></nav>
|
||||
<h1 class="h2 mb-3">Импорт проекта</h1>
|
||||
{% if error %}<div class="alert alert-danger" role="alert">{{ error }}</div>{% endif %}
|
||||
<div class="card border-0 shadow-sm mb-3">
|
||||
<div class="card-body">
|
||||
<p class="text-muted">Выберите ZIP-архив проекта, созданный через «Экспорт проекта».
|
||||
Файл будет полностью проверен до каких-либо изменений в базе данных.</p>
|
||||
<form method="post" action="/projects/import/upload" enctype="multipart/form-data">
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="file">Архив проекта (.wvt.zip)</label>
|
||||
<input class="form-control" type="file" id="file" name="file" accept=".zip,application/zip" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Проверить файл</button>
|
||||
<a href="/projects/" class="btn btn-outline-secondary">Отмена</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user