|
@@ -255,12 +255,12 @@ define([ "require", "backbone", "hbs!tmpl/entity/CreateEntityLayoutView_tmpl", "
|
|
|
});
|
|
|
},
|
|
|
getContainer: function(object) {
|
|
|
- var value = object.value, entityLabel = this.capitalize(_.escape(value.name));
|
|
|
+ var value = object.value, entityLabel = Utils.toChinese(_.escape(value.name)) ;
|
|
|
return '<div class=" row ' + value.isOptional + '"><span class="col-sm-3"><label><span class="' + (value.isOptional ? "true" : "false required") + '">' + entityLabel + '</span><span class="center-block ellipsis-with-margin text-gray" title="类型: ' + value.typeName + '">(' + _.escape(value.typeName) + ')</span></label></span><span class="col-sm-9">' + this.getElement(object) + "</input></span></div>";
|
|
|
},
|
|
|
getFieldElementContainer: function(object) {
|
|
|
var htmlField = object.htmlField, relationshipType = (!!object.attributeType && object.attributeType,
|
|
|
- !!object.relationshipType && object.relationshipType), alloptional = object.alloptional, typeOfDefination = relationshipType ? "Relationships" : "Attributes";
|
|
|
+ !!object.relationshipType && object.relationshipType), alloptional = object.alloptional, typeOfDefination = relationshipType ? "关联" : "属性";
|
|
|
return '<div class="attribute-dash-box ' + (alloptional ? "alloptional" : "") + ' "><span class="attribute-type-label">' + typeOfDefination + "</span>" + htmlField + "</div>";
|
|
|
},
|
|
|
getSelect: function(object) {
|