beccabroek | 44da471 | 2019-03-20 13:24:23 -0500 | [diff] [blame^] | 1 | <primary> |
| 2 | <h1>Virtual media</h1> |
| 3 | <p class="vm__page-description" ng-if="devices.length >= 1">Specify image file location to start session.</p> |
| 4 | <p ng-if="devices.length < 1"> |
| 5 | There are no Virtual Media devices available. |
| 6 | </primary> |
| 7 | <div ng-repeat="device in devices track by $index" class="vm__upload"> |
| 8 | <h2 class="h3">{{device.deviceName}}</h2> |
| 9 | <div class="vm__upload-chooser"> |
| 10 | <!-- name and error message --> |
| 11 | <div class="vm__upload-content"> |
| 12 | <div class="vm__upload-controls"> |
| 13 | <!-- Button --> |
| 14 | <label class="vm__upload-choose-label"> |
| 15 | <input id="file-upload" type="file" file="device.file" class="hide" ng-disabled="device.isActive"/> |
| 16 | <span class="vm__upload-choose-button button btn-secondary" ng-class="{disabled:device.isActive}">Choose file</span> |
| 17 | </label> |
| 18 | <div class="vm__upload-name"> |
| 19 | <span ng-if="!device.file">No file selected</span> |
| 20 | <span ng-if="device.file.name !== undefined">{{device.file.name}}</span> |
| 21 | <span class="icon__exit" ng-if="device.file && !device.isActive" ng-click="resetFile($index);"></span> |
| 22 | </div> |
| 23 | </div> |
| 24 | <div class="vm__active-text vm__active-border" ng-if="device.isActive"> |
| 25 | <span>Active Session</span> |
| 26 | </div> |
| 27 | <div class="vm__active-text vm__error-border" ng-if="device.hasError"> |
| 28 | <span>Error in connecting to the selected file</span> |
| 29 | </div> |
| 30 | </div> |
| 31 | <div class="vm__upload-start"> |
| 32 | <input type="button" ng-value="device.isActive ? 'Stop' : 'Start'" ng-class="{disabled:!device.file}" class="button btn-primary" ng-click="device.isActive? stopVM($index) : startVM($index)"/> |
| 33 | </div> |
| 34 | </div> |
| 35 | </div> |
| 36 | </div> |