You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by zh...@apache.org on 2015/07/31 12:12:09 UTC
incubator-kylin git commit: KYLIN-919,model name validate
Repository: incubator-kylin
Updated Branches:
refs/heads/0.8 d840c5f56 -> fde52eb58
KYLIN-919,model name validate
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/fde52eb5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/fde52eb5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/fde52eb5
Branch: refs/heads/0.8
Commit: fde52eb5803bab5ca41cc40eff538de31f860219
Parents: d840c5f
Author: jiazhong <ji...@ebay.com>
Authored: Fri Jul 31 18:10:39 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Fri Jul 31 18:10:58 2015 +0800
----------------------------------------------------------------------
webapp/app/partials/cubeDesigner/info.html | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/fde52eb5/webapp/app/partials/cubeDesigner/info.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/cubeDesigner/info.html b/webapp/app/partials/cubeDesigner/info.html
index fa5202a..1684516 100644
--- a/webapp/app/partials/cubeDesigner/info.html
+++ b/webapp/app/partials/cubeDesigner/info.html
@@ -25,8 +25,12 @@
<label class="col-xs-12 col-sm-3 control-label no-padding-right">
<b>Model Name</b>
</label>
- <div class="col-xs-12 col-sm-6">
- <input ng-if="state.mode=='edit'" ng-disabled="{{isEdit}}" ng-model="cubeMetaFrame.model_name" type="text" typeahead="model for model in modelsManager.modelNameList" class="form-control">
+ <div class="col-xs-12 col-sm-6" ng-class="{'has-error':forms.cube_info_form.model_name.$invalid && (forms.cube_info_form.model_name.$dirty||forms.cube_info_form.model_name.$sbumitted)}">
+ <input ng-if="state.mode=='edit'" ng-disabled="{{isEdit}}" name="model_name" required ng-model="cubeMetaFrame.model_name" type="text"
+ placeholder="Input your model name"
+ typeahead="model for model in modelsManager.modelNameList"
+ class="form-control"/>
+ <small class="help-block" ng-show="forms.cube_info_form.model_name.$error.required && (forms.cube_info_form.model_name.$dirty||forms.cube_info_form.$sbumitted)">Model name is required.</small>
<span ng-if="state.mode=='view'">{{cubeMetaFrame.model_name}}</span>
</div>