KYLIN-1330 use select box instead of typehead

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

Branch: refs/heads/1.x-HBase1.1.3
Commit: 0c120c34d0fc08df07c3161500aac73aea3eb9f3
Parents: 9d96cfa
Author: janzhongi <[email protected]>
Authored: Thu Feb 18 14:58:14 2016 +0800
Committer: janzhongi <[email protected]>
Committed: Thu Feb 18 14:58:14 2016 +0800

----------------------------------------------------------------------
 .../app/partials/cubeDesigner/data_model.html   | 21 +++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/0c120c34/webapp/app/partials/cubeDesigner/data_model.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/cubeDesigner/data_model.html 
b/webapp/app/partials/cubeDesigner/data_model.html
index cf19c23..557eaa9 100644
--- a/webapp/app/partials/cubeDesigner/data_model.html
+++ b/webapp/app/partials/cubeDesigner/data_model.html
@@ -26,8 +26,15 @@
                 <b>Fact Table</b>
             </label>
             <div class="col-xs-12 col-sm-6">
-                <typeahead ng-if="state.mode=='edit'" 
items="tableModel.selectProjectTables" prompt="Fact Table Name"
-                           title="name" model="metaModel.model.fact_table" 
required="true"></typeahead>
+              <select chosen ng-model="metaModel.model.fact_table" 
ng-if="state.mode=='edit'"
+                      ng-options="table.name as table.name for table in 
tableModel.selectProjectTables"
+                      style="width:100%;"
+                      ng-required="true"
+                      data-placeholder="Fact Table Name"
+                      class="chosen-select">
+                <option value=""> -- Select Fact Table -- </option>
+              </select>
+
                 <span 
ng-if="state.mode=='view'">{{metaModel.model.fact_table}}</span>
             </div>
         </div>
@@ -113,7 +120,15 @@
                         <div class="row">
                             <label class="control-label col-xs-12 col-sm-3 
no-padding-right font-color-default"><b>Lookup Table Name</b></label>
                             <div class="col-xs-12 col-sm-6">
-                                <typeahead 
items="tableModel.selectProjectTables" prompt="Lookup Table Name" title="name" 
model="newLookup.table"></typeahead>
+                              <select chosen ng-model="newLookup.table"
+                                      ng-options="table.name as table.name for 
table in tableModel.selectProjectTables"
+                                      style="width:100%;"
+                                      ng-required="true"
+                                      data-placeholder="Lookup Table Name"
+                                      class="chosen-select">
+                                <option value=""> -- Select Lookup Table -- 
</option>
+                              </select>
+
                             </div>
                         </div>
                     </div>

Reply via email to