2020-10-28 16:14:32 -07:00
|
|
|
<!-- modal volume add -->
|
|
|
|
|
<div class="modal fade" id="volumeAddModal" tabindex="-1" role="dialog">
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h4 class="modal-title">Add Volume</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<form name="volumeAddForm" role="form" novalidate ng-submit="volumeAdd.submit()" autocomplete="off">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<p class="has-error text-center" ng-show="volumeAdd.error">{{ volumeAdd.error }}</p>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label">Volume name</label>
|
|
|
|
|
<p class="small text-info">Cloudron will mount the host path into the app's container with this name under <code>/media</code>.</p>
|
|
|
|
|
<input type="text" class="form-control" ng-model="volumeAdd.name" name="name" ng-disabled="volumeAdd.busy" autofocus>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label">Host Path</label>
|
|
|
|
|
<input type="text" class="form-control" ng-model="volumeAdd.hostPath" name="hostPath" ng-disabled="volumeAdd.busy" autofocus>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input class="ng-hide" type="submit" ng-disabled="volumeAddForm.$invalid || volumeAdd.busy"/>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer ">
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
|
<button type="submit" class="btn btn-outline btn-success pull-right" ng-click="volumeAdd.submit()" ng-disabled="volumeAddForm.$invalid || volumeAdd.busy">
|
|
|
|
|
<i class="fa fa-circle-notch fa-spin" ng-show="volumeAdd.busy"></i> Add
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Modal volume remove -->
|
|
|
|
|
<div class="modal fade" id="volumeRemoveModal" tabindex="-1" role="dialog">
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h4 class="modal-title">Really remove {{ volumeRemove.volume.name }} ?</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
This will delete the volume <code>{{ volumeRemove.volume.name }}</code>. Data inside the host path will not be removed.
|
|
|
|
|
<div>
|
|
|
|
|
<br/>
|
|
|
|
|
<span class="has-error" ng-show="volumeRemove.error">{{ volumeRemove.error }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
|
<button type="button" class="btn btn-danger" ng-click="volumeRemove.submit()" ng-disabled="volumeRemove.busy"><i class="fa fa-circle-notch fa-spin" ng-show="volumeRemove.busy"></i> Remove</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="text-left">
|
|
|
|
|
<h1>Volumes <button class="btn btn-primary btn-outline pull-right" ng-click="volumeAdd.show()"><i class="fa fa-plus"></i> Add Volume</button></h1>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card card-large">
|
|
|
|
|
<div class="row ng-hide" ng-show="!ready">
|
|
|
|
|
<div class="col-lg-12 text-center">
|
|
|
|
|
<h2><i class="fa fa-circle-notch fa-spin"></i></h2>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row animateMeOpacity ng-hide" ng-show="ready">
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<table class="table table-hover" style="margin-top: 10px;">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="text-left">Name</th>
|
|
|
|
|
<th class="text-left">Host Path</th>
|
2020-11-11 22:50:57 +01:00
|
|
|
<th style="width: 100px" class="text-right">{{ 'main.actions' | tr }}</th>
|
2020-10-28 16:14:32 -07:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr ng-repeat="volume in volumes">
|
|
|
|
|
<td class="elide-table-cell hand">
|
|
|
|
|
{{ volume.name }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="text-left elide-table-cell hidden-xs hidden-sm hand">
|
|
|
|
|
{{ volume.hostPath }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="text-right no-wrap" style="vertical-align: bottom">
|
2020-10-30 10:33:05 -07:00
|
|
|
<a class="btn btn-xs btn-default" ng-href="{{ '/filemanager.html?volumeId=' + volume.id }}" target="_blank" uib-tooltip="File Manager"><i class="far fa-file-alt"></i></a>
|
2020-10-28 16:14:32 -07:00
|
|
|
<button class="btn btn-xs btn-danger" ng-click="volumeRemove.show(volume)" title="Remove Volume"><i class="far fa-trash-alt"></i></button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|