editing updates, cosmetic changes
This commit is contained in:
@@ -66,6 +66,17 @@ def get_back_to_catalogue(
|
||||
return builder.as_markup()
|
||||
|
||||
|
||||
def created_category(cat_id: int, cat_name: str, parent_id: int):
|
||||
return InlineKeyboardBuilder(
|
||||
[
|
||||
[
|
||||
InlineKeyboardButton(text=cat_name, callback_data=f"cat:{cat_id}"),
|
||||
InlineKeyboardButton(text="⬅️ Назад", callback_data=f"cat:{parent_id}"),
|
||||
]
|
||||
]
|
||||
).as_markup()
|
||||
|
||||
|
||||
def main_menu_kb(cart_items: int) -> InlineKeyboardMarkup:
|
||||
return InlineKeyboardBuilder(
|
||||
[
|
||||
@@ -157,6 +168,7 @@ def render_products(
|
||||
nav_buttons = []
|
||||
if prev_cb:
|
||||
nav_buttons.append(InlineKeyboardButton(text="◀️", callback_data=prev_cb))
|
||||
nav_buttons.append(InlineKeyboardButton(text="🔍", callback_data="find"))
|
||||
if next_cb:
|
||||
nav_buttons.append(InlineKeyboardButton(text="▶️", callback_data=next_cb))
|
||||
|
||||
|
||||
@@ -18,4 +18,5 @@ class SearchStorage(StatesGroup):
|
||||
|
||||
class AdminControlStorage(StatesGroup):
|
||||
edit_product = State()
|
||||
edit_category = State()
|
||||
new_category = State()
|
||||
|
||||
Reference in New Issue
Block a user