53 lines
2.3 KiB
HTML
53 lines
2.3 KiB
HTML
<div class="modal" id="machineCreationModal" ng-controller="machineCreationCtrl" >
|
||
<div class="modal-dialog">
|
||
<div class="modal-content"></div>
|
||
</div>
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
|
||
<h4 class="modal-title">Create Machine</h4>
|
||
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<form class="form-horizontal" role="form">
|
||
<div class="form-group">
|
||
<label class="control-label col-sm-2">Name</label>
|
||
<div class="col-sm-20">
|
||
<input type="text" value="" />
|
||
</div>
|
||
</div>
|
||
|
||
<fieldset class="form-group">
|
||
<label class="control-label col-sm-2">RAM</label>
|
||
<select class="col-sm-20" id="ramSelected">
|
||
<option ng-repeat="ram in axioms.ram" ng-selected="machine.ram == ram">{{ ram}}</option>
|
||
</select>
|
||
<span>MB</span>
|
||
</fieldset>
|
||
|
||
<fieldset class="form-group">
|
||
<label class="control-label col-sm-2">Disk</label>
|
||
<select class="col-sm-20" id="ramSelected">
|
||
<option ng-repeat="disk in axioms.disk" ng-selected="machine.disk == disk">{{ disk}}</option>
|
||
</select>
|
||
</fieldset>
|
||
|
||
<fieldset class="form-group">
|
||
<label class="control-label col-sm-2">Image</label>
|
||
<select class="col-sm-20" id="ramSelected">
|
||
<option ng-repeat="image in axioms.images" ng-selected="machine.imageId == Object.keys(image)">{{ image.name}}</option>
|
||
</select>
|
||
</fieldset>
|
||
</form>
|
||
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<a href="#" data-dismiss="modal" ng-click="createMachine()" class="btn btn-primary">Create</a>
|
||
<a href="#" data-dismiss="modal" class="btn btn-default">Cancel</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|