Commit 4b0cf35c authored by Nicolas Wavrant's avatar Nicolas Wavrant

stack-monitor: fix in readonly fields

parent 63143684
......@@ -34,7 +34,7 @@ print "<input type=\"hidden\" name=\"posting-script\" value=\"{{ pwd }}/{{ this_
for option in parser.options("public"):
print "<div class=\"pure-control-group\">"
print "<label for=\"=%s\">%s</label>"%(option, option)
print "<input type=\"text\" name=\"%s\" value=\"%s\" readonly>"%(option, parser.get('public', option))
print "<input type=\"text\" name=\"%s\" value=\"%s\">"%(option, parser.get('public', option))
print "</div>"
print "<div class=\"pure-controls\"><button type=\"submit\" class=\"pure-button \
pure-button-primary\">Save</button></div></form>"
......@@ -46,7 +46,7 @@ for section in parser.sections():
for option in parser.options(section):
print "<div class=\"pure-control-group\">"
print "<label for=\"=%s\">%s</label>"%(option, option)
print "<input type=\"text\" name=\"%s\" value=\"%s\">"%(option, parser.get(section, option))
print "<input type=\"text\" name=\"%s\" value=\"%s\" readonly>"%(option, parser.get(section, option))
print "</div>"
print "</form>"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment