mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[rules] commented out old upload html
This commit is contained in:
@@ -79,7 +79,7 @@ void handle_rules() {
|
||||
currentSet = rulesSet;
|
||||
}
|
||||
|
||||
addHtml(F("<form name = 'frmselect' method = 'post' onsubmit='addRulesLength()'>"));
|
||||
//addHtml(F("<form name = 'frmselect' method = 'post' onsubmit='addRulesLength()'>"));
|
||||
html_table_class_normal();
|
||||
html_TR();
|
||||
html_table_header(F("Rules"));
|
||||
@@ -101,16 +101,16 @@ void handle_rules() {
|
||||
|
||||
Rule_showRuleTextArea(fileName);
|
||||
|
||||
addFormSeparator(2);
|
||||
//addFormSeparator(2);
|
||||
|
||||
html_TR_TD();
|
||||
addSubmitButton();
|
||||
//addSubmitButton();
|
||||
addButton(fileName, F("Download to file"));
|
||||
html_end_table();
|
||||
html_end_form();
|
||||
html_add_script(F(
|
||||
"function addRulesLength() { var r_len = document.getElementById('rules').value.length; document.getElementById('rules_len').setAttribute('value', r_len); };"),
|
||||
true);
|
||||
//html_end_form();
|
||||
// html_add_script(F(
|
||||
// "function addRulesLength() { var r_len = document.getElementById('rules').value.length; document.getElementById('rules_len').setAttribute('value', r_len); };"),
|
||||
// true);
|
||||
sendHeadandTail_stdtemplate(true);
|
||||
TXBuffer.endStream();
|
||||
|
||||
@@ -536,7 +536,7 @@ void Rule_showRuleTextArea(const String& fileName) {
|
||||
addHtml(F("<textarea id='rules' name='rules' rows='30' wrap='off'>"));
|
||||
size = streamFile_htmlEscape(fileName);
|
||||
addHtml(F("</textarea>"));
|
||||
addHtml(F("<TR><TD colspan='2'>"));
|
||||
//addHtml(F("<TR><TD colspan='2'>"));
|
||||
|
||||
html_TR_TD();
|
||||
{
|
||||
@@ -554,7 +554,7 @@ void Rule_showRuleTextArea(const String& fileName) {
|
||||
if (size > RULES_MAX_SIZE) {
|
||||
addHtml(F("<span style=\"color:red\">Filesize exceeds web editor limit!</span>"));
|
||||
}
|
||||
addHtml(F("<p><input type='text' id='rules_len' name='rules_len' value='0'></p>"));
|
||||
//addHtml(F("<p><input type='text' id='rules_len' name='rules_len' value='0'></p>"));
|
||||
}
|
||||
|
||||
bool Rule_Download(const String& path)
|
||||
|
||||
Reference in New Issue
Block a user