keyboards

package
v0.0.0-...-b745f0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CashboxKeyboard = tgbotapi.NewInlineKeyboardMarkup(
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Пополнить кассу "+emoji.DollarBanknote, "plus_cash"),
		tgbotapi.NewInlineKeyboardButtonData("Взять с кассы "+emoji.MoneyWithWings, "minus_cash"),
	),
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Все транзакции "+emoji.Receipt, "transactions"),
	),
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Начать день "+emoji.FileBox, "set_start_cash"),
		tgbotapi.NewInlineKeyboardButtonData("Завершить день "+emoji.EndArrow, "end_day"),
	),
	tgbotapi.NewInlineKeyboardRow(
		MainMenuButton,
	),
)
View Source
var EditProductKeyboard = tgbotapi.NewInlineKeyboardMarkup(
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Название", "edit prod_name"),
		tgbotapi.NewInlineKeyboardButtonData("Маржа", "edit prod_margin"),
		tgbotapi.NewInlineKeyboardButtonData("Себестоимость", "edit prod_prime"),
	),
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Цена", "edit prod_price"),
		tgbotapi.NewInlineKeyboardButtonData("Единица", "edit prod_unit"),
	),
	tgbotapi.NewInlineKeyboardRow(
		MainMenuButton,
	),
)
View Source
var MainMenuButton = tgbotapi.NewInlineKeyboardButtonData("Главное Меню "+emoji.House, "home")
View Source
var SettingsKeyboard = tgbotapi.NewInlineKeyboardMarkup(
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Создать продукт "+emoji.Plus, "add_product"),
		tgbotapi.NewInlineKeyboardButtonData("Показать все продукты "+emoji.Box, "get_all_products"),
	),
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Добавить тип "+emoji.NewButton, "add_type"),
		tgbotapi.NewInlineKeyboardButtonData("Показать все типы "+emoji.Info, "get_all_types"),
	),
	tgbotapi.NewInlineKeyboardRow(MainMenuButton),
)

Create keyboard for configs.

View Source
var StatsKeyboard = tgbotapi.NewInlineKeyboardMarkup(
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Статистика за месяц "+emoji.UpLeftArrow, "month_stats"),
	),
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("История покупок"+emoji.UpLeftArrow, "curr_day_history"),
		tgbotapi.NewInlineKeyboardButtonData("Статистика за день"+emoji.GraphicIncrease, "curr_day_stats"),
	),
	tgbotapi.NewInlineKeyboardRow(
		MainMenuButton,
	),
)
View Source
var StoreKeyboard = tgbotapi.NewInlineKeyboardMarkup(
	tgbotapi.NewInlineKeyboardRow(
		tgbotapi.NewInlineKeyboardButtonData("Поставка продукта "+emoji.Registered, "supply"),
		tgbotapi.NewInlineKeyboardButtonData("Проверить склад "+emoji.QuestionMark, "check_storage"),
	),
	tgbotapi.NewInlineKeyboardRow(MainMenuButton),
)

Functions

func GetTypesKeyboard

func GetTypesKeyboard(data string) tgbotapi.InlineKeyboardMarkup

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL