jie 1 год назад
Родитель
Сommit
62b7a136f1

+ 4 - 4
atlas/js/templates/glossary/CreateEditCategoryTermLayoutView_tmpl.html

@@ -18,19 +18,19 @@
     <div class="form-group">
         <label class="control-label col-sm-2 {{#if create}}required{{/if}}" for="name">术语名称</label>
         <div class="col-sm-10">
-            <input class="form-control" data-id="name" name="name" value="{{modelJSON.name}}" placeholder="Name(required)" autofocus />
+            <input class="form-control" data-id="name" name="name" value="{{modelJSON.name}}" placeholder="名称(必须)" autofocus />
         </div>
     </div>
     <div class="form-group">
         <label class="control-label col-sm-2" for="description">简述</label>
         <div class="col-sm-10">
-            <input class="form-control" name="shortDescription" data-id="shortDescription" value="{{modelJSON.shortDescription}}" placeholder="Short Description" />
+            <input class="form-control" name="shortDescription" data-id="shortDescription" value="{{modelJSON.shortDescription}}" placeholder="简述" />
         </div>
     </div>
     <div class="form-group">
         <label class="control-label col-sm-2" for="description">详细描述</label>
         <div class="col-sm-10">
-            <textarea class="form-control" name="longDescription" data-id="longDescription" placeholder="Long Description">{{modelJSON.longDescription}}</textarea>
+            <textarea class="form-control" name="longDescription" data-id="longDescription" placeholder="详细描述">{{modelJSON.longDescription}}</textarea>
         </div>
     </div>
-</form>
+</form>

+ 4 - 4
atlas/js/templates/glossary/CreateEditGlossaryLayoutView_tmpl.html

@@ -18,19 +18,19 @@
     <div class="form-group">
         <label class="control-label col-sm-2 {{#if create}}required{{/if}}" for="name">术语表名</label>
         <div class="col-sm-10">
-            <input class="form-control" name="name" value="{{name}}" data-id="name" placeholder="Name(required)" autofocus />
+            <input class="form-control" name="name" value="{{name}}" data-id="name" placeholder="名称必须" autofocus />
         </div>
     </div>
     <div class="form-group">
         <label class="control-label col-sm-2" for="description">简述</label>
         <div class="col-sm-10">
-            <input class="form-control" name="shortDescription" data-id="shortDescription" value="{{shortDescription}}" placeholder="Short Description" />
+            <input class="form-control" name="shortDescription" data-id="shortDescription" value="{{shortDescription}}" placeholder="简述" />
         </div>
     </div>
     <div class="form-group">
         <label class="control-label col-sm-2" for="description">详细描述</label>
         <div class="col-sm-10">
-            <textarea class="form-control" name="longDescription" data-id="longDescription" placeholder="Long Description">{{longDescription}}</textarea>
+            <textarea class="form-control" name="longDescription" data-id="longDescription" placeholder="详细描述">{{longDescription}}</textarea>
         </div>
     </div>
-</form>
+</form>

+ 2 - 2
atlas/js/templates/search/save/SaveModalLayoutView_tmpl.html

@@ -18,7 +18,7 @@
     <div class="form-group">
         <label class="control-label col-sm-2 required" for="name">名称</label>
         <div class="col-sm-10">
-            <input class="form-control" data-id="saveAsName" placeholder="Name(required)" value="{{selectedModel.name}}" autofocus />
+            <input class="form-control" data-id="saveAsName" placeholder="名称(必须)" value="{{selectedModel.name}}" autofocus />
         </div>
     </div>
-</form>
+</form>

+ 1 - 1
atlas/js/templates/site/entity_tmpl.html

@@ -51,4 +51,4 @@
     </tr>
     {{/each}}
 </tbody>
-{{/if}}
+{{/if}}

+ 3 - 3
atlas/js/templates/tag/CreateTagLayoutView_tmpl.html

@@ -22,7 +22,7 @@
         <label class="control-label col-sm-2 {{#if create}}required{{/if}}" for="name">名称</label>
         {{#if create}}
         <div class="col-sm-10">
-            <input class="form-control" data-id="tagName" placeholder="Name(required)" autofocus />
+            <input class="form-control" data-id="tagName" placeholder="名称(必须)" autofocus />
         </div>
         {{else}}
         <span class="ellipsis-with-margin control-label text-left col-sm-10" data-id="title"></span> {{/if}}
@@ -30,7 +30,7 @@
     <div class="form-group">
         <label class="control-label col-sm-2 required" for="description">描述</label>
         <div class="col-sm-10">
-            <input class="form-control" data-id="description" value="{{description}}" placeholder="Description(required)" />
+            <input class="form-control" data-id="description" value="{{description}}" placeholder="描述(必须)" />
         </div>
     </div>
     {{#if create}}
@@ -51,4 +51,4 @@
     <div data-id="addAttributeDiv">
     </div>
     </div>
-</form>
+</form>

+ 2 - 2
atlas/js/templates/tag/TagAttributeItemView_tmpl.html

@@ -16,7 +16,7 @@
 -->
 <div class="form-group clearfix">
     <div class="col-sm-7">
-        <input class="form-control attributeInput" data-id="attributeInput" placeholder="Attribute name">
+        <input class="form-control attributeInput" data-id="attributeInput" placeholder="属性名">
         </input>
     </div>
     <div class="col-sm-3">
@@ -34,4 +34,4 @@
     <div class="col-sm-2 attributePlusData" align="right">
         <button type="button" class="btn btn-danger btn-sm closeInput" data-id="close"><i class="fa fa-times"></i></button>
     </div>
-</div>
+</div>

+ 14 - 14
atlas/js/views/business_metadata/CreateBusinessMetadataLayoutView.js

@@ -44,9 +44,9 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
             }, events;
         },
         initialize: function(options) {
-            _.extend(this, _.pick(options, "businessMetadataDefCollection", "selectedBusinessMetadata", "enumDefCollection", "model", "isNewBusinessMetadata", "isAttrEdit", "typeHeaders", "attrDetails")), 
-            this.fromTable = !!this.isNewBusinessMetadata, this.isEditAttr = !this.isAttrEdit, 
-            this.businessMetadataModel = new VEntity(), this.model ? this.description = this.model.get("description") : this.create = !0, 
+            _.extend(this, _.pick(options, "businessMetadataDefCollection", "selectedBusinessMetadata", "enumDefCollection", "model", "isNewBusinessMetadata", "isAttrEdit", "typeHeaders", "attrDetails")),
+            this.fromTable = !!this.isNewBusinessMetadata, this.isEditAttr = !this.isAttrEdit,
+            this.businessMetadataModel = new VEntity(), this.model ? this.description = this.model.get("description") : this.create = !0,
             this.isNewBusinessMetadata ? this.collection = new Backbone.Collection() : this.collection = this.isAttrEdit ? new Backbone.Collection([ this.attrDetails ]) : new Backbone.Collection([ {
                 name: "",
                 typeName: "string",
@@ -61,9 +61,9 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
         bindEvents: function() {},
         onRender: function() {
             var that = this;
-            this.$(".fontLoader").show(), "placeholder" in HTMLInputElement.prototype || this.ui.createForm.find("input,textarea").placeholder(), 
+            this.$(".fontLoader").show(), "placeholder" in HTMLInputElement.prototype || this.ui.createForm.find("input,textarea").placeholder(),
             1 == this.isNewBusinessMetadata ? (that.ui.businessMetadataAttrPageOk.text("创建"),
-            that.ui.businessMetadataAttrPageOk.attr("data-action", "newBusinessMetadata")) : (that.ui.businessMetadataAttrPageOk.text("Save"), 
+            that.ui.businessMetadataAttrPageOk.attr("data-action", "newBusinessMetadata")) : (that.ui.businessMetadataAttrPageOk.text("Save"),
             that.ui.businessMetadataAttrPageOk.attr("data-action", "attributeEdit")), this.hideLoader();
         },
         hideLoader: function() {
@@ -85,7 +85,7 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
             this.collectionAttribute(), "placeholder" in HTMLInputElement.prototype || this.ui.addAttributeDiv.find("input,textarea").placeholder();
         },
         loaderStatus: function(isActive) {
-            isActive ? (parent.$(".business-metadata-attr-tableOverlay").show(), parent.$(".business-metadata-attr-fontLoader").show()) : (parent.$(".business-metadata-attr-tableOverlay").hide(), 
+            isActive ? (parent.$(".business-metadata-attr-tableOverlay").show(), parent.$(".business-metadata-attr-fontLoader").show()) : (parent.$(".business-metadata-attr-tableOverlay").hide(),
             parent.$(".business-metadata-attr-fontLoader").hide());
         },
         validateValues: function(attributeDefs) {
@@ -93,12 +93,12 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
             return attributeDefs && !this.isAttrEdit && (attrNames = _.map(attributeDefs, function(model) {
                 return model.name.toLowerCase();
             })), validationFileds.each(function(elements) {
-                $(this).removeClass("errorValidate"), "" != validationFileds[elements].value.trim() && null != validationFileds[elements].value || "none" != validationFileds[elements].style.display && ($(validationFileds[elements]).addClass("errorValidate"), 
+                $(this).removeClass("errorValidate"), "" != validationFileds[elements].value.trim() && null != validationFileds[elements].value || "none" != validationFileds[elements].style.display && ($(validationFileds[elements]).addClass("errorValidate"),
                 $(this).addClass("errorValidate"), isValidate && (isValidate = !1));
             }), isValidate && this.$el.find(".attributeInput").each(function(element) {
                 var attrValue = this.value.toLowerCase();
                 attrNames.indexOf(attrValue) > -1 ? (Utils.notifyInfo({
-                    content: "Attribute name already exist"
+                    content: "属性名已存在"
                 }), $(this).addClass("errorValidate"), isAttrDuplicate && (isAttrDuplicate = !1)) : attrValue.length && attrNames.push(attrValue);
             }), isValidate ? !isAttrDuplicate || void 0 : (Utils.notifyInfo({
                 content: "Please fill the details"
@@ -109,7 +109,7 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
             if (!this.validateValues()) {
                 this.loaderStatus(!0);
                 var name = this.ui.name.val(), description = this.ui.description.val(), attributeObj = this.collection.toJSON();
-                1 === this.collection.length && "" === this.collection.first().get("name") && (attributeObj = []), 
+                1 === this.collection.length && "" === this.collection.first().get("name") && (attributeObj = []),
                 this.json = {
                     enumDefs: [],
                     structDefs: [],
@@ -131,7 +131,7 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
                     data: this.json,
                     success: function(model, response) {
                         var nameSpaveDef = model.businessMetadataDefs;
-                        nameSpaveDef && (that.businessMetadataDefCollection.fullCollection.add(nameSpaveDef), 
+                        nameSpaveDef && (that.businessMetadataDefCollection.fullCollection.add(nameSpaveDef),
                         Utils.notifySuccess({
                             content: "业务元数据 " + name + Messages.getAbbreviationMsg(!1, "addSuccessMessage")
                         })), that.options.onUpdateBusinessMetadata(!0);
@@ -148,8 +148,8 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
         onUpdateAttr: function() {
             var that = this, selectedBusinessMetadataClone = $.extend(!0, {}, that.selectedBusinessMetadata.toJSON()), attributeDefs = selectedBusinessMetadataClone.attributeDefs;
             if (!this.validateValues(attributeDefs)) if (this.collection.length > 0) {
-                this.loaderStatus(!0), void 0 === selectedBusinessMetadataClone.attributeDefs && (selectedBusinessMetadataClone.attributeDefs = []), 
-                selectedBusinessMetadataClone.attributeDefs = selectedBusinessMetadataClone.attributeDefs.concat(this.collection.toJSON()), 
+                this.loaderStatus(!0), void 0 === selectedBusinessMetadataClone.attributeDefs && (selectedBusinessMetadataClone.attributeDefs = []),
+                selectedBusinessMetadataClone.attributeDefs = selectedBusinessMetadataClone.attributeDefs.concat(this.collection.toJSON()),
                 this.json = {
                     enumDefs: [],
                     structDefs: [],
@@ -163,7 +163,7 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
                     success: function(model, response) {
                         Utils.notifySuccess({
                             content: "一个或多个业务元数据属性" + Messages.getAbbreviationMsg(!0, "editSuccessMessage")
-                        }), model.businessMetadataDefs && model.businessMetadataDefs.length && that.selectedBusinessMetadata.set(model.businessMetadataDefs[0]), 
+                        }), model.businessMetadataDefs && model.businessMetadataDefs.length && that.selectedBusinessMetadata.set(model.businessMetadataDefs[0]),
                         that.options.onEditCallback(), that.options.onUpdateBusinessMetadata(!0);
                     },
                     silent: !0,
@@ -179,4 +179,4 @@ define([ "require", "backbone", "hbs!tmpl/business_metadata/CreateBusinessMetada
         }
     });
     return CreateBusinessMetadataLayoutView;
-});
+});