Add channel label to dimmer (#1329)

This commit is contained in:
MaxineMuster
2024-08-24 00:07:40 +02:00
committed by GitHub
parent 989ac1eb46
commit 9acb13af35

View File

@ -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));