minor,UI use select box input model name when edit cube

Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/e90af490
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e90af490
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e90af490

Branch: refs/heads/KYLIN-1122
Commit: e90af490a4f9e7ae38794afd623a72c4258d5a1c
Parents: 7ef14f1
Author: jian <zhongj...@apache.org>
Authored: Wed Jan 13 21:20:19 2016 +0800
Committer: Xiaoyu Wang <wangxia...@apache.org>
Committed: Mon Jan 18 13:38:30 2016 +0800

----------------------------------------------------------------------
 webapp/app/partials/cubeDesigner/info.html  | 14 ++++++++++----
 webapp/app/partials/models/models_tree.html |  3 +++
 2 files changed, 13 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/e90af490/webapp/app/partials/cubeDesigner/info.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/cubeDesigner/info.html 
b/webapp/app/partials/cubeDesigner/info.html
index 53279cf..14e319f 100644
--- a/webapp/app/partials/cubeDesigner/info.html
+++ b/webapp/app/partials/cubeDesigner/info.html
@@ -26,10 +26,16 @@
                     <b>Model Name</b>
                   </label>
                   <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"/>
+                    <select chosen ng-model="cubeMetaFrame.model_name" 
ng-if="state.mode=='edit'"
+                            ng-options="model for model in 
modelsManager.modelNameList"
+                            style="width:100%;"
+                            name="model_name"
+                            ng-required="true"
+                            data-placeholder="select a model"
+                            class="chosen-select">
+                      <option value=""> -- Choose Model -- </option>
+                    </select>
+
                     <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>

http://git-wip-us.apache.org/repos/asf/kylin/blob/e90af490/webapp/app/partials/models/models_tree.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/models/models_tree.html 
b/webapp/app/partials/models/models_tree.html
index 7b94841..03f5b07 100644
--- a/webapp/app/partials/models/models_tree.html
+++ b/webapp/app/partials/models/models_tree.html
@@ -61,3 +61,6 @@
       <div no-result 
ng-if="modelsManager.loading!=true&&modelsManager.models.length==0"></div>
     </div>
 </div>
+
+<div ng-include="'partials/models/model_detail.html'"></div>
+

Reply via email to