mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Use separate input/output buttons
This commit is contained in:
parent
b926e984e3
commit
5c17df8cf2
@ -1625,10 +1625,15 @@ void webHandleGpioConfig()
|
|||||||
httpMessage += F("</table></form>");
|
httpMessage += F("</table></form>");
|
||||||
|
|
||||||
if(configCount < HASP_NUM_GPIO_CONFIG) {
|
if(configCount < HASP_NUM_GPIO_CONFIG) {
|
||||||
|
httpMessage += F("<p><form method='GET' action='gpio/input'>");
|
||||||
|
httpMessage += F("<input type='hidden' name='id' value='");
|
||||||
|
httpMessage += gpioGetFreeConfigId();
|
||||||
|
httpMessage += F("'><button type='submit'>" D_HTTP_ADD_GPIO " Input</button></form></p>");
|
||||||
|
|
||||||
httpMessage += F("<p><form method='GET' action='gpio/options'>");
|
httpMessage += F("<p><form method='GET' action='gpio/options'>");
|
||||||
httpMessage += F("<input type='hidden' name='id' value='");
|
httpMessage += F("<input type='hidden' name='id' value='");
|
||||||
httpMessage += gpioGetFreeConfigId();
|
httpMessage += gpioGetFreeConfigId();
|
||||||
httpMessage += F("'><button type='submit'>" D_HTTP_ADD_GPIO "</button></form></p>");
|
httpMessage += F("'><button type='submit'>" D_HTTP_ADD_GPIO " Output</button></form></p>");
|
||||||
}
|
}
|
||||||
|
|
||||||
add_form_button(httpMessage, F("↩ " D_HTTP_CONFIGURATION), F("/config"), F(""));
|
add_form_button(httpMessage, F("↩ " D_HTTP_CONFIGURATION), F("/config"), F(""));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user