Commit 11d4b725 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Rafael Monnerat

[slapos_jio]: reapply display unknown parameters with a textarea field

  This was accidently reverted.
parent 5a0ae73e
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
} }
for (key in default_dict) { for (key in default_dict) {
if (default_dict.hasOwnProperty(key)) { if (default_dict.hasOwnProperty(key)) {
if (default_used_list.indexOf(key) < 0 ) { if (default_used_list.indexOf(key) < 0) {
div = document.createElement("div"); div = document.createElement("div");
div.title = key; div.title = key;
if (restricted === true) { if (restricted === true) {
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
div.appendChild(label); div.appendChild(label);
div_input = document.createElement("div"); div_input = document.createElement("div");
div_input.setAttribute("class", "input"); div_input.setAttribute("class", "input");
input = render_field({"type": "string"}, default_dict[key]); input = render_field({"type": "string", "textarea": true}, default_dict[key]);
input.name = path + "/" + key; input.name = path + "/" + key;
input.setAttribute("class", "slapos-parameter"); input.setAttribute("class", "slapos-parameter");
input.setAttribute("placeholder", " "); input.setAttribute("placeholder", " ");
......
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