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