diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 99477a03f..3afa6b652 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -1068,11 +1068,7 @@ int http_fn_cmd_tool(http_request_t *request) { } poststr(request,"
"); } - poststr(request,"
"); - - poststr(request,"
\ - ",tmpA); + add_label_text_field(request, "Command", "cmd", tmpA, ""); poststr(request,"

\ \
"); @@ -1085,7 +1081,6 @@ int http_fn_cmd_tool(http_request_t *request) { int http_fn_startup_command(http_request_t *request) { char tmpA[512]; - const char *cmd; http_setup(request, httpMimeTypeHTML); http_html_start(request, "Set startup command"); poststr(request,"

Set/Change/Clear startup command line

"); @@ -1103,16 +1098,8 @@ int http_fn_startup_command(http_request_t *request) { } else { } - cmd = CFG_GetShortStartupCommand(); - - poststr(request,"
"); - - poststr(request,"
\ -
"); - poststr(request,"
\ + add_label_text_field(request, "Startup command", "data", CFG_GetShortStartupCommand(), ""); + poststr(request,"

\ \
"); @@ -1154,11 +1141,7 @@ int http_fn_uart_tool(http_request_t *request) { strcpy(tmpA,"Hello UART world"); } - poststr(request,"
"); - - poststr(request,"
\ -
",tmpA); + add_label_text_field(request, "Data", "data", tmpA, ""); poststr(request,"
\ \
");