mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Cleanup factory reset webpage
This commit is contained in:
parent
bfb730a212
commit
77beb04d27
@ -2021,18 +2021,14 @@ void httpHandleResetConfig()
|
|||||||
} else {
|
} else {
|
||||||
httpMessage +=
|
httpMessage +=
|
||||||
F("<h2>Warning</h2><b>This process will reset all settings to the default values. The internal flash "
|
F("<h2>Warning</h2><b>This process will reset all settings to the default values. The internal flash "
|
||||||
"will "
|
"will be erased and the device is restarted. You may need to connect to the WiFi AP displayed on the "
|
||||||
"be erased and the device is restarted. You may need to connect to the WiFi AP displayed on the "
|
"panel to re-configure the device before accessing it again. ALL FILES WILL BE LOST!</b>"
|
||||||
"panel to "
|
"<br/><hr><br/><form method='GET' action='resetConfig'>");
|
||||||
"re-configure the device before accessing it again. ALL FILES WILL BE LOST!"
|
|
||||||
"<br/><hr><br/><form method='GET' action='resetConfig'>"
|
add_button(httpMessage, F(D_HTTP_ERASE_DEVICE), F("name='confirm' value='yes'"));
|
||||||
"<br/><br/><button type='submit' name='confirm' value='yes'>" D_HTTP_ERASE_DEVICE "</button></form>"
|
close_form(httpMessage);
|
||||||
"<br/><hr><br/>");
|
|
||||||
|
|
||||||
add_form_button(httpMessage, F("↩ " D_HTTP_CONFIGURATION), F("/config"), F(""));
|
add_form_button(httpMessage, F("↩ " D_HTTP_CONFIGURATION), F("/config"), F(""));
|
||||||
// httpMessage +=
|
|
||||||
// PSTR("<p><form method='GET' action='/config'><button type='submit'>↩ " D_HTTP_CONFIGURATION
|
|
||||||
// "</button></form></p>");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
webSendPage(haspDevice.get_hostname(), httpMessage.length(), resetConfirmed);
|
webSendPage(haspDevice.get_hostname(), httpMessage.length(), resetConfirmed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user