2020-09-02 22:34:49 +03:00
{
"configs" : [
"/config.setup.json" ,
"/lang/lang.ru.json"
] ,
"class" : "col-sm-offset-1 col-sm-10 col-md-offset-2 col-md-8 col-lg-offset-3 col-lg-6" ,
"content" : [
{
"type" : "h5" ,
"title" : "{{name}}" ,
"class" : "alert-default"
} ,
{
"type" : "link" ,
"title" : "{{ButMainPage}}" ,
"action" : "/" ,
"class" : "btn btn-block btn-default"
} ,
{
"type" : "hr"
} ,
2020-11-05 02:23:08 +03:00
{
"type" : "checkbox" ,
2020-12-02 04:50:29 +03:00
"name" : "telegonof" ,
2020-11-05 02:23:08 +03:00
"title" : "Включить телеграм" ,
2020-12-02 04:50:29 +03:00
"action" : "/set?telegonof=[[telegonof]]" ,
2020-11-05 02:23:08 +03:00
"state" : "{{telegonof}}"
} ,
{
"type" : "hr"
} ,
2020-12-02 04:50:29 +03:00
{
"type" : "checkbox" ,
"name" : "teleginput" ,
"title" : "Включить прием входящих сообщений" ,
"action" : "/set?teleginput=[[teleginput]]" ,
"state" : "{{teleginput}}"
} ,
{
"type" : "hr"
} ,
2021-01-03 02:14:12 +01:00
{
"type" : "checkbox" ,
"name" : "autos" ,
"title" : "Автоматически брать chat ID из входящих сообщений" ,
"action" : "/set?autos=[[autos]]" ,
"state" : "{{autos}}"
} ,
{
"type" : "hr"
} ,
2020-12-02 04:50:29 +03:00
{
"type" : "h4" ,
"title" : "Telegram chat ID"
} ,
{
"type" : "input" ,
"title" : "" ,
"name" : "chatId-arg" ,
"state" : "{{chatId}}"
} ,
2020-09-02 22:34:49 +03:00
{
"type" : "h4" ,
2020-12-02 04:50:29 +03:00
"title" : "Telegram API token"
2020-09-02 22:34:49 +03:00
} ,
{
"type" : "input" ,
"title" : "" ,
2020-11-04 23:48:21 +03:00
"name" : "telegramApi-arg" ,
"state" : "{{telegramApi}}"
2020-09-02 22:34:49 +03:00
} ,
{
"type" : "button" ,
"title" : "{{ButSave}}" ,
2020-12-02 04:50:29 +03:00
"action" : "set?telegramApi=[[telegramApi-arg]]&chatId=[[chatId-arg]]" ,
2020-09-02 22:34:49 +03:00
"class" : "btn btn-block btn-default" ,
"style" : "width:100%;display:inline"
} ,
{
"type" : "hr"
2020-11-05 02:23:08 +03:00
} ,
{
"type" : "text" ,
"title" : "<div style='margin-top:10px;margin-bottom:10px;'><font color='black'><p style='border: 1px solid #DCDCDC; border-radius: 3px; background-color: #F5F5F5; padding: 10px;'>После настройки telegram перезагрузите устройство что бы изменения вступили в силу</p></font></div>"
2020-11-07 01:11:32 +03:00
} ,
{
"type" : "hr"
} ,
{
2020-12-11 17:37:29 +03:00
"type" : "h3" ,
"name" : "reset-block" ,
"style" : "position:fixed;top:50%;left:50%;width:400px;margin-left:-200px;text-align:center;" ,
"class" : "hidden"
} ,
{
"type" : "button" ,
2020-11-07 01:11:32 +03:00
"title" : "Перезагрузить устройство" ,
2020-12-11 17:37:29 +03:00
"action" : "/set?reqReset" ,
"response" : "[[reset-block]]" ,
2020-11-07 01:11:32 +03:00
"class" : "btn btn-block btn-danger"
2020-09-02 22:34:49 +03:00
}
]
}