summaryrefslogtreecommitdiffstats
path: root/app/server-control/controllers/virtual-media-controller.html
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2019-09-19 14:12:16 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-09-24 14:16:14 +0000
commit418db63c77aad03fe3401c7acd9f9792fab96a68 (patch)
tree79f995939cf688fe3d45c9b9b48931d7ca0afea8 /app/server-control/controllers/virtual-media-controller.html
parent5ccf9e36c1da9b6396288c3cfe8d32dddfbb1a10 (diff)
downloadphosphor-webui-418db63c77aad03fe3401c7acd9f9792fab96a68.tar.gz
phosphor-webui-418db63c77aad03fe3401c7acd9f9792fab96a68.zip
Move Virtual Media files and route
"Virtual media" was already part of the "Server control" submenu but the files were at app/configuration and the route was /configuration. Marta Mazur did a similar file and route move here as part of supporting multiple Virtual Media endpoints: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-webui/+/25218 Tested: Built and loaded on a Witherspoon. The VM route is now: #/server-control/virtual-media. Was able to use the VM panel. Change-Id: Iec46a8ece7ddfbc356bc1e71875def70c4418027 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/server-control/controllers/virtual-media-controller.html')
-rw-r--r--app/server-control/controllers/virtual-media-controller.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/server-control/controllers/virtual-media-controller.html b/app/server-control/controllers/virtual-media-controller.html
new file mode 100644
index 0000000..e756986
--- /dev/null
+++ b/app/server-control/controllers/virtual-media-controller.html
@@ -0,0 +1,38 @@
+<primary>
+ <h1>Virtual media</h1>
+ <p class="vm__page-description" ng-if="devices.length >= 1">Specify image file location to start session.</p>
+ <p ng-if="devices.length < 1">
+ There are no Virtual Media devices available.
+ </primary>
+ <div ng-repeat="device in devices track by $index" class="vm__upload">
+ <h2 class="h3">{{device.deviceName}}</h2>
+ <div class="vm__upload-chooser">
+ <!-- name and error message -->
+ <div class="vm__upload-content">
+ <div class="vm__upload-controls">
+ <!-- Button -->
+ <label class="vm__upload-choose-label">
+ <input id="file-upload" type="file" file="device.file" class="hide" ng-disabled="device.isActive"/>
+ <span class="vm__upload-choose-button btn btn-secondary" ng-class="{disabled:device.isActive}">Choose file</span>
+ </label>
+ <div class="vm__upload-name">
+ <span ng-if="!device.file">No file selected</span>
+ <span ng-if="device.file.name !== undefined">{{device.file.name}}</span>
+ <span class="icon__exit" ng-if="device.file && !device.isActive" ng-click="resetFile($index);">
+ <icon file="icon-close.svg"></icon>
+ </span>
+ </div>
+ </div>
+ <div class="vm__active-text vm__active-border" ng-if="device.isActive">
+ <span>Active Session</span>
+ </div>
+ <div class="vm__active-text vm__error-border" ng-if="device.hasError">
+ <span>Error in connecting to the selected file</span>
+ </div>
+ </div>
+ <div class="vm__upload-start">
+ <input type="button" ng-value="device.isActive ? 'Stop' : 'Start'" ng-class="{disabled:!device.file}" class="btn btn-primary" ng-click="device.isActive? stopVM($index) : startVM($index)"/>
+ </div>
+ </div>
+ </div>
+</div>
OpenPOWER on IntegriCloud