istic-openstack/client/partials/image/edit.html

66 lines
3 KiB
HTML
Raw Normal View History

2016-04-17 20:43:41 +02:00
<div class="modal fade" id="editImageModal" ng-controller="editImageCtrl">
2016-04-17 20:11:46 +02:00
<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>-->
2016-04-17 20:43:41 +02:00
<h4 class="modal-title">Edit Image</h4>
2016-04-17 20:11:46 +02:00
</div>
<div class="modal-body">
<form class="form-horizontal" role="form">
<div class="form-group">
2016-04-17 20:43:41 +02:00
<label class="control-label col-sm-2">Name</label>
2016-04-20 09:10:02 +02:00
<div class="col-sm-20">
2016-05-09 12:29:33 +02:00
<input type="text" ng-model="data.name" value="{{ data.name}}"/>
2016-04-17 20:11:46 +02:00
</div>
2016-04-18 13:16:50 +02:00
2016-04-17 20:11:46 +02:00
</div>
2016-04-18 13:16:50 +02:00
<fieldset class="form-group">
<label class="control-label col-sm-2">Visibility</label>
2016-05-09 12:29:33 +02:00
<select class="col-sm-20" ng-model="data.visibility">
<option ng-repeat="visibility in axioms.visibility" ng-selected="data.visibility == visibility">{{ visibility}}</option>
2016-04-18 13:16:50 +02:00
</select>
</fieldset>
<fieldset class="form-group">
<label class="control-label col-sm-2">Protected</label>
2016-05-09 12:29:33 +02:00
<select class="col-sm-20" ng-model="data.protected">
<option ng-repeat="protect in axioms.protected" ng-selected="data.protected == protect">{{ protect }}</option>
2016-04-18 13:16:50 +02:00
</select>
</fieldset>
2016-04-17 20:11:46 +02:00
</form>
2016-05-09 22:39:49 +02:00
<input id="fileupload" type="file" name="files" data-url="../server/index.php">
<div id="progress">
<div class="bar" style="width: 0%;"></div>
</div>
<!-- <form action="../server/index.php" enctype="multipart/form-data" method="post" ng-if='image.status == "queued"'>
2016-05-06 14:24:15 +02:00
<input type="hidden" name="task" value="image" />
2016-05-08 17:44:06 +02:00
<input type="hidden" name="token" value="{{ getToken()}}" />
2016-05-06 14:24:15 +02:00
<input type="hidden" name="action" value="uploadImage" />
2016-05-08 17:44:06 +02:00
2016-05-09 12:29:33 +02:00
<input type="hidden" name="id" value="{{ data.id}}" />
2016-05-07 10:52:22 +02:00
<input type="hidden" name="file_name" value="cirros-0.3.4-x86_64-disk.img" />
2016-05-06 14:24:15 +02:00
<fieldset class="form-group">
<label class="control-label col-sm-2">Upload</label>
2016-05-08 18:54:15 +02:00
<input name="file" type="file"/>
<input type="submit" value="Upload"/>
2016-05-06 14:24:15 +02:00
</fieldset>
2016-05-09 22:39:49 +02:00
</form> -->
2016-04-17 20:43:41 +02:00
<div class="modal-footer">
<!--<a href="#" data-dismiss="modal" class="btn btn-default">Close</a>-->
2016-04-17 20:11:46 +02:00
2016-05-08 15:49:21 +02:00
<a class="btn btn-lg btn-primary btn-block" ng-click="applyEdition(image.id)" >Apply</a>
2016-04-17 20:43:41 +02:00
</div>
2016-04-17 20:11:46 +02:00
</div>
2016-04-17 20:43:41 +02:00
2016-04-17 20:11:46 +02:00
</div>
</div>
</div>