diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js index fcab5f77c7..1523b6f4e9 100644 --- a/src/sunstone/public/js/sunstone-util.js +++ b/src/sunstone/public/js/sunstone-util.js @@ -1232,8 +1232,10 @@ function loadAccounting(resource, id, graphs, options){ }; } + function insert_extended_template_table(template_json,resource_type,resource_id) { + console.log(template_json); var str = '
| '+tr(field)+' | \ -'+value+' | \ -\
- e\
- \
- | \
- \
- x\
- \
- | \
-
| '+tr(field)+' | \ +\ + | \
+ \
+ e\
+ \
+ | \
+ \
+ \
+ x\
+ \
+ | '
+ }
+
+ str += fromJSONtoHTMLTable(current_value,
+ resource_type,
+ resource_id,
+ true);
+ }
+ else
+ {
+ str += fromJSONtoHTMLRow(field,
+ current_value,
+ resource_type,
+ resource_id,
+ false);
+ }
+ }
+ }
+ else // or value can be a string
+ {
+ var align_str = "";
+ var key_class_str = "";
+ var value_class_str = "";
+
+ if(vectorial)
+ {
+ align_str="text-align:center";
+ key_class_str=" key_vectorial_td";
+ value_class_str=" value_vectorial_td";
+ }
+
+ str += '
| '+tr(field)+' | \ +'+value+' | '; + + if (vectorial) + { + str += '\
+ \
+ e\
+ \
+ | \
+ \
+ \
+ x\
+ \
+ | \
+ ';
+ }
+
+ }
+
return str;
}