Ver Fonte

更具“placeholder”进行修改

zlSun há 1 ano atrás
pai
commit
9660997c3a

+ 2 - 2
atlas/js/templates/business_metadata/BusinessMetadataAttributeItemView_tmpl.html

@@ -23,7 +23,7 @@
     <div class="form-group">
         <label class="control-label col-sm-3 required" for="name">属性名</label>
         <div class="col-sm-8">
-            <input class="form-control attributeInput require" data-id="attributeInput" placeholder="Attribute name">
+            <input class="form-control attributeInput require" data-id="attributeInput" placeholder="属性名">
             </input>
         </div>
     </div>
@@ -96,7 +96,7 @@
         <div class="stringlength-container">
             <label class="control-label col-sm-3 required" for="name">最大长度</label>
             <div class="col-sm-8">
-                <input type="number" class="form-control stringLengthVal require" data-id="stringLength" placeholder="Maximum length">
+                <input type="number" class="form-control stringLengthVal require" data-id="stringLength" placeholder="最大长度">
             </div>
         </div>
     </div>

+ 2 - 2
atlas/js/templates/business_metadata/CreateBusinessMetadataLayoutView_tmpl.html

@@ -23,7 +23,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 businessMetadata-name require" data-id="name" placeholder="Name(required)" autofocus />
+            <input class="form-control businessMetadata-name require" data-id="name" placeholder="名称(必须)" autofocus />
         </div>
         {{else}}
         <span class="ellipsis-with-margin control-label text-left col-sm-10" data-id="title"></span> {{/if}}
@@ -31,7 +31,7 @@
     <div class="form-group">
         <label class="control-label col-sm-2" for="description">Description</label>
         <div class="col-sm-10">
-            <input class="form-control" data-id="description" value="{{description}}" placeholder="Description" />
+            <input class="form-control" data-id="description" value="{{description}}" placeholder="描述" />
         </div>
     </div>
     {{/if}}

+ 1 - 1
atlas/js/views/common/BackgridHeader.js

@@ -20,7 +20,7 @@ define([ "require", "backbone", "underscore", "utils/Utils", "utils/Globals", "b
         render: function() {
             return this.$el.empty().append(this.template({
                 name: this.column.get("name"),
-                placeholder: this.column.get("placeholder") || "Search",
+                placeholder: this.column.get("placeholder") || "搜索",
                 style: this.column.get("headerSearchStyle")
             })), this.$el.addClass("renderable"), this.delegateEvents(), this;
         },

+ 2 - 2
atlas/js/views/entity/EntityBusinessMetaDataItemView.js

@@ -89,7 +89,7 @@ define([ "require", "backbone", "utils/Utils", "hbs!tmpl/entity/EntityBusinessMe
                     zone: !1,
                     dateFormat: Globals.dateFormat
                 }));
-                if ("string" === typeName || "array<string>" === typeName) returnEL = "<" + elType + ' type="text" data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '" data-multi="' + isMultiValued + '" data-tags="true"  placeholder="Enter String" class="form-control" ' + (isMultiValued !== !1 || _.isUndefinedNull(val) ? "" : 'value="' + val + '"') + "></" + elType + ">"; else if ("boolean" === typeName || "array<boolean>" === typeName) returnEL = '<select data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '" data-multi="' + isMultiValued + '" class="form-control">' + (isMultiValued ? "" : '<option value="">--Select Value--</option>') + '<option value="true" ' + (_.isUndefinedNull(val) || "true" != val ? "" : "selected") + '>true</option><option value="false" ' + (_.isUndefinedNull(val) || "false" != val ? "" : "selected") + ">false</option></select>"; else if ("date" === typeName || "array<date>" === typeName) returnEL = "<" + (isMultiValued ? "textarea" : "input") + ' type="text" data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '"data-multi="' + isMultiValued + '" data-type="date" class="form-control" ' + (isMultiValued !== !1 || _.isUndefinedNull(val) ? "" : 'value="' + val + '"') + ">" + (isMultiValued !== !0 || _.isUndefinedNull(val) ? "" : val) + (isMultiValued ? "</textarea>" : ""), 
+                if ("string" === typeName || "array<string>" === typeName) returnEL = "<" + elType + ' type="text" data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '" data-multi="' + isMultiValued + '" data-tags="true"  placeholder="输入字符串" class="form-control" ' + (isMultiValued !== !1 || _.isUndefinedNull(val) ? "" : 'value="' + val + '"') + "></" + elType + ">"; else if ("boolean" === typeName || "array<boolean>" === typeName) returnEL = '<select data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '" data-multi="' + isMultiValued + '" class="form-control">' + (isMultiValued ? "" : '<option value="">--Select Value--</option>') + '<option value="true" ' + (_.isUndefinedNull(val) || "true" != val ? "" : "selected") + '>true</option><option value="false" ' + (_.isUndefinedNull(val) || "false" != val ? "" : "selected") + ">false</option></select>"; else if ("date" === typeName || "array<date>" === typeName) returnEL = "<" + (isMultiValued ? "textarea" : "input") + ' type="text" data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '"data-multi="' + isMultiValued + '" data-type="date" class="form-control" ' + (isMultiValued !== !1 || _.isUndefinedNull(val) ? "" : 'value="' + val + '"') + ">" + (isMultiValued !== !0 || _.isUndefinedNull(val) ? "" : val) + (isMultiValued ? "</textarea>" : ""),
                 setTimeout(function() {
                     var dateObj = {
                         singleDatePicker: !0,
@@ -108,7 +108,7 @@ define([ "require", "backbone", "utils/Utils", "hbs!tmpl/entity/EntityBusinessMe
                         })), that.$el.find(".custom-col-1[data-id='value']>[data-key]").trigger("change");
                     });
                 }, 0); else if ("byte" === typeName || "array<byte>" === typeName || "short" === typeName || "array<short>" === typeName || "int" === typeName || "array<int>" === typeName || "float" === typeName || "array<float>" === typeName || "double" === typeName || "array<double>" === typeName || "long" === typeName || "array<long>" === typeName) allowOnlyNum = !0, 
-                returnEL = "<" + elType + ' data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '" type="number" data-multi="' + isMultiValued + '" data-tags="true" placeholder="Enter Number" class="form-control" ' + (_.isUndefinedNull(val) ? "" : 'value="' + val + '"') + "></" + elType + ">"; else if (typeName) {
+                returnEL = "<" + elType + ' data-key="' + key + '" data-businessMetadata="' + businessMetadata + '" data-typename="' + typeName + '" type="number" data-multi="' + isMultiValued + '" data-tags="true" placeholder="输入数字" class="form-control" ' + (_.isUndefinedNull(val) ? "" : 'value="' + val + '"') + "></" + elType + ">"; else if (typeName) {
                     isEnum = !0;
                     var modTypeName = typeName;
                     if (isMultiValued) {