feat(ui): страница загрузки договора /upload

Дизайн: Nubes Design System (карточки, форма, таблица).
Lucide Icons. drag&drop файла docx/pdf/zip.
Пайплайн: создание договора → загрузка допника → таблица строк.
This commit is contained in:
2026-06-15 06:15:12 +04:00
parent 3912dff112
commit 54d9924c04
2 changed files with 332 additions and 0 deletions
+5
View File
@@ -42,6 +42,7 @@ class ContractsApp:
# -- Системные маршруты --
self.app.add_url_rule("/", "index", self._index)
self.app.add_url_rule("/health", "health", self._health)
self.app.add_url_rule("/upload", "upload_page", self._upload_page)
# -- Blueprint-ы (каждый слой — отдельный Blueprint) --
self.app.register_blueprint(test_bp)
@@ -58,6 +59,10 @@ class ContractsApp:
"""Health check для платформы."""
return "OK", 200, {"Content-Type": "text/plain"}
def _upload_page(self):
"""Страница загрузки договора (UI)."""
return render_template("upload.html")
def run(self):
"""Запуск Flask (только для разработки, в production — gunicorn)."""
self.app.run(host="0.0.0.0", port=5000)