From 0eb76d6a8e364ead867c8bba12cd6fce56fb73ea Mon Sep 17 00:00:00 2001 From: chi zhang Date: Mon, 1 Dec 2014 10:41:22 -0800 Subject: [PATCH] modified autofill display Change-Id: I1ff80fbf6f5c1b038e14d593e797b9116c665f3a --- v2/src/app/wizard/network.tpl.html | 70 +++++++++++++++--------------- v2/src/app/wizard/wizard.js | 13 +++++- 2 files changed, 48 insertions(+), 35 deletions(-) diff --git a/v2/src/app/wizard/network.tpl.html b/v2/src/app/wizard/network.tpl.html index 99d8ff6..4e248aa 100644 --- a/v2/src/app/wizard/network.tpl.html +++ b/v2/src/app/wizard/network.tpl.html @@ -9,21 +9,27 @@

Autofill IP Address for Each Interface - + +

+ - - + + @@ -36,14 +42,14 @@ - - + @@ -66,7 +72,7 @@ - - + + + + + + +
Action Interface Is Mgmt Network Promisc Mode SubnetAutofill RulesActionAutofill Rules
+ + + + - - - -
+ + + + + {{interface_name}} + - - - - +
+

Autofill Hostname

+ + +
-
-
- -

Autofill Hostname

- - -
- -
- -
@@ -136,8 +138,8 @@
diff --git a/v2/src/app/wizard/wizard.js b/v2/src/app/wizard/wizard.js index e908514..5666ebc 100644 --- a/v2/src/app/wizard/wizard.js +++ b/v2/src/app/wizard/wizard.js @@ -669,8 +669,19 @@ define(['uiRouter', 'angularTable', 'angularDragDrop', 'angularTouch', 'ngSpinne var cluster = wizardFactory.getClusterInfo(); $scope.subnetworks = wizardFactory.getSubnetworks(); $scope.interfaces = wizardFactory.getInterfaces(); + $scope.autoFill = false; + $scope.autoFillButtonDisplay = "Enable Autofill"; //$scope.servers = wizardFactory.getServers(); - + $scope.autoFillMange = function(){ + $scope.autoFill = !$scope.autoFill; + if($scope.autoFill) + { + $scope.autoFillButtonDisplay = "Disable Autofill"; + } + else{ + $scope.autoFillButtonDisplay = "Enable Autofill"; + } + }; dataService.getServerColumns().success(function(data) { $scope.server_columns = data.showless; });