aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html
diff options
context:
space:
mode:
authorSonsino, Ofir (os0695) <os0695@intl.att.com>2018-05-14 13:30:27 +0300
committerSonsino, Ofir (os0695) <os0695@intl.att.com>2018-05-14 13:30:27 +0300
commit84183c37cc8fa626f85e1651df8827cae2a94819 (patch)
tree5535290eb95a33b2370cad260b3c746f11b5b97d /vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html
parent5da04228a33e616d2b5909d1ec5e35274b5808f1 (diff)
Scale out and CM update
Change-Id: I313a82dfa92e49f868ea0d0b8a3ed1bffee423c9 Issue-ID: VID-188 Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html')
-rw-r--r--vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html36
1 files changed, 20 insertions, 16 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html
index e14af86d..fa06258f 100644
--- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html
@@ -98,24 +98,24 @@
<div class="table-header table-row">
<div></div>
- <div>VNF instance name</div>
+ <div>Service Instance Name</div>
+ <div>VNF Instance Name</div>
<div>Model V</div>
<div>Category</div>
- <div>Sub Category</div>
<div>UUID</div>
<div>Invariant UUID</div>
</div>
- <div class="table-row" ng-repeat-start="vnf in vm.changeManagement.vnfNames" ng-if="vnf['prov-status'] === 'PROV'">
- <div></div>
- <div>{{vnf.name}} service instance name: {{vnf['service-instance-node'].properties['service-instance-name']}}</div>
- <div>2</div>
- <div>Category</div>
- <div>Sub Category</div>
+ <div class="table-row" ng-repeat-start="vnf in vm.changeManagement.vnfNames" ng-if="vnf['prov-status'] === 'PROV'" ng-click="vnf.isOpen=!!!vnf.isOpen">
+ <div>+</div>
+ <div>{{vnf['service-instance-node'].properties['service-instance-name']}}</div>
+ <div>{{vnf.name}}</div>
+ <div>{{vnf['availableVersions'][0].modelInfo.modelVersion}}</div>
+ <div>{{vnf.category}}</div>
<div>{{vnf.modelVersionId}}</div>
<div>{{vnf['invariant-id']}}</div>
</div>
- <div class="modules-table open" ng-repeat-end="">
+ <div class="modules-table" ng-repeat-end="" ng-class="{'open' :vnf.isOpen}">
<div class="table-header table-row">
<div>VF Module</div>
<div>In Service</div>
@@ -124,13 +124,17 @@
<div>File</div>
</div>
- <div class="table-row" ng-repeat="(key, module) in vnf.vfModules">
- <div>{{module.modelCustomizationName}}</div>
- <div>{{module.properties.minCountInstances}} - {{module.properties.maxCountInstances}}</div>
- <div>Category</div>
- <div>{{module.uuid}}</div>
+ <div class="table-row" ng-repeat="(custUUID, moduleArr) in vnf.groupModules">
+ <div>{{moduleArr[0].modelCustomizationName}}</div>
+ <div>{{moduleArr.length}}</div>
+ <div ng-if="moduleArr[0].properties.minCountInstances == moduleArr[0].properties.maxCountInstances">N/A</div>
+ <div ng-if="moduleArr[0].properties.minCountInstances != moduleArr[0].properties.maxCountInstances">
+ <input type="number" ng-model="moduleArr[0].scale" step="1"
+ ng-min="moduleArr[0].properties.minCountInstances" ng-max="moduleArr[0].properties.maxCountInstances - moduleArr.length" />
+ </div>
+ <div>{{moduleArr[0].uuid}}</div>
<div>
- <input type="file" ng-model="module.file" accept="application/json" />
+ <input type="file" accept="application/json" onchange="angular.element(this).scope().setPreload(this)" />
</div>
</div>
</div>
@@ -139,7 +143,7 @@
<div class="modal-footer">
<div class="pull-right">
- <button ng-if="!vm.isScaleOut() || (vm.isScaleOut() && vm.wizardStep === 2)" type="submit" id="submit" name="submit" class="btn btn-primary" data-ng-disabled="newChangeManagement.$invalid">Schedule</button>
+ <button ng-if="!vm.isScaleOut() || (vm.isScaleOut() && vm.wizardStep === 2)" type="submit" id="submit" name="submit" class="btn btn-primary" data-ng-disabled="newChangeManagement.$invalid">{{vm.hasScheduler ? "Schedule" : "Confirm"}}</button>
<button ng-if="vm.isScaleOut() && vm.wizardStep === 1" ng-click="vm.nextStep();" type="button" id="next" name="next" class="btn btn-primary" data-ng-disabled="newChangeManagement.$invalid">Next</button>
<button type="button" id="cancel" name="cancel" class="btn btn-white" ng-click="vm.close()">Cancel</button>
</div>