Stage 05.7 - trade draft UI restructuring and order context display
This commit is contained in:
@@ -7,6 +7,7 @@ from aiogram.fsm.context import FSMContext
|
||||
from aiogram.types import CallbackQuery, InlineKeyboardMarkup, Message
|
||||
from aiogram.utils.keyboard import InlineKeyboardBuilder
|
||||
|
||||
from src.telegram.ui.common import mode_line
|
||||
from src.telegram.handlers.trade.new_order import (
|
||||
show_recent_drafts,
|
||||
start_new_order_draft,
|
||||
@@ -15,15 +16,10 @@ from src.telegram.handlers.trade.new_order import (
|
||||
router = Router(name="trade_main")
|
||||
|
||||
|
||||
def _mode_line() -> str:
|
||||
from src.core.system_status import get_runtime_mode_label
|
||||
return f"Режим: <b>{get_runtime_mode_label()}</b>\n\n"
|
||||
|
||||
|
||||
def _trade_screen(title: str) -> str:
|
||||
return (
|
||||
f"<b>📊 Торговля — {title}</b>\n"
|
||||
f"{_mode_line()}"
|
||||
f"{mode_line()}"
|
||||
"Выбери раздел"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user