mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-08 06:55:50 +00:00
Add channel label to dimmer (#1329)
This commit is contained in:
@ -546,7 +546,7 @@ int http_fn_index(http_request_t* request) {
|
||||
}
|
||||
pwmValue = CHANNEL_Get(i);
|
||||
poststr(request, "<tr><td>");
|
||||
hprintf255(request, "<form action=\"index\" id=\"form%i\">", i);
|
||||
hprintf255(request, "Channel %s:<br><form action=\"index\" id=\"form%i\">", CHANNEL_GetLabel(i), i);
|
||||
hprintf255(request, "<input type=\"range\" min=\"0\" max=\"%i\" name=\"%s\" id=\"slider%i\" value=\"%i\" onchange=\"this.form.submit()\">", maxValue, inputName, i, pwmValue);
|
||||
hprintf255(request, "<input type=\"hidden\" name=\"%sIndex\" value=\"%i\">", inputName, i);
|
||||
hprintf255(request, "<input type=\"submit\" class='disp-none' value=\"Toggle %s\"/></form>", CHANNEL_GetLabel(i));
|
||||
|
||||
Reference in New Issue
Block a user