Commit e33f8a2d authored by Jérome Perrin's avatar Jérome Perrin

fieldset : display description as a label when property definition has no name

+ add a TODO
parent 570adc42
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
'beforeend', 'beforeend',
label_template({ label_template({
"for": property_id, "for": property_id,
"name": (property_definition.name || property_id) "name": (property_definition.name || property_definition.description || property_id)
}) })
); );
console.log("...................."); console.log("....................");
...@@ -156,7 +156,8 @@ ...@@ -156,7 +156,8 @@
if (property_name !== 'coordinate' if (property_name !== 'coordinate'
&& property_name !== '_class' && property_name !== '_class'
&& property_name !== 'id') { && property_name !== 'id') {
console.log("ADDING FIELD FOR " + property_name + "!!!!!!!"); // XXX some properties are not editable
// XXX should not be defined here
addField(property_name, property_definition, value); addField(property_name, property_definition, value);
} }
}); });
......
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