feat(ui): страница загрузки договора /upload
Дизайн: Nubes Design System (карточки, форма, таблица). Lucide Icons. drag&drop файла docx/pdf/zip. Пайплайн: создание договора → загрузка допника → таблица строк.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user