2016-06-08 06:23:11 +00:00
|
|
|
<rd-header>
|
2016-06-14 02:32:44 +00:00
|
|
|
<rd-header-title title="Volume list">
|
|
|
|
<a data-toggle="tooltip" title="Refresh" ui-sref="volumes" ui-sref-opts="{reload: true}">
|
|
|
|
<i class="fa fa-refresh" aria-hidden="true"></i>
|
|
|
|
</a>
|
2017-01-24 01:28:40 +00:00
|
|
|
<i id="loadVolumesSpinner" class="fa fa-cog fa-spin" style="margin-left: 5px;"></i>
|
2016-06-14 02:32:44 +00:00
|
|
|
</rd-header-title>
|
2016-06-08 06:23:11 +00:00
|
|
|
<rd-header-content>Volumes</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
2016-06-02 05:34:03 +00:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-cubes" title="Volumes">
|
2016-07-07 00:44:58 +00:00
|
|
|
<div class="pull-right">
|
2017-01-24 01:28:40 +00:00
|
|
|
Items per page:
|
|
|
|
<select ng-model="state.pagination_count" ng-change="changePaginationCount()">
|
|
|
|
<option value="0">All</option>
|
|
|
|
<option value="10">10</option>
|
|
|
|
<option value="25">25</option>
|
|
|
|
<option value="50">50</option>
|
|
|
|
<option value="100">100</option>
|
|
|
|
</select>
|
2016-07-07 00:44:58 +00:00
|
|
|
</div>
|
2016-06-02 05:34:03 +00:00
|
|
|
</rd-widget-header>
|
|
|
|
<rd-widget-taskbar classes="col-lg-12">
|
|
|
|
<div class="pull-left">
|
2016-10-27 08:33:39 +00:00
|
|
|
<button type="button" class="btn btn-danger" ng-click="removeAction()" ng-disabled="!state.selectedItemCount"><i class="fa fa-trash space-right" aria-hidden="true"></i>Remove</button>
|
2017-03-27 12:44:39 +00:00
|
|
|
<a class="btn btn-primary" type="button" ui-sref="actions.create.volume"><i class="fa fa-plus space-right" aria-hidden="true"></i>Add volume</a>
|
2016-06-02 05:34:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
|
|
|
<input type="text" id="filter" ng-model="state.filter" placeholder="Filter..." class="form-control input-sm" />
|
|
|
|
</div>
|
2017-07-09 16:49:36 +00:00
|
|
|
<span class="btn-group btn-group-sm pull-right" style="margin-right: 20px;">
|
|
|
|
<label class="btn btn-primary" ng-model="state.danglingVolumesOnly" uib-btn-radio="undefined">
|
|
|
|
All
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-primary" ng-model="state.danglingVolumesOnly" uib-btn-radio="false">
|
|
|
|
Attached
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-primary" ng-model="state.danglingVolumesOnly" uib-btn-radio="true">
|
|
|
|
Dangling
|
|
|
|
</label>
|
|
|
|
</span>
|
2016-06-02 05:34:03 +00:00
|
|
|
</rd-widget-taskbar>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<div class="table-responsive">
|
2016-07-13 23:03:40 +00:00
|
|
|
<table class="table table-hover">
|
2016-06-02 05:34:03 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-01-04 20:15:41 +00:00
|
|
|
<th>
|
|
|
|
<input type="checkbox" ng-model="allSelected" ng-change="selectItems(allSelected)" />
|
|
|
|
</th>
|
2016-06-02 05:34:03 +00:00
|
|
|
<th>
|
2017-05-23 18:56:10 +00:00
|
|
|
<a ui-sref="volumes" ng-click="order('Id')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Name
|
2017-05-23 18:56:10 +00:00
|
|
|
<span ng-show="sortType == 'Id' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Id' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-06-02 05:34:03 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
2016-06-14 02:13:52 +00:00
|
|
|
<a ui-sref="volumes" ng-click="order('Driver')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Driver
|
|
|
|
<span ng-show="sortType == 'Driver' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Driver' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2017-06-29 14:14:17 +00:00
|
|
|
<th>
|
|
|
|
<a ui-sref="volumes" ng-click="order('Mountpoint')">
|
|
|
|
Mount point
|
|
|
|
<span ng-show="sortType == 'Mountpoint' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Mountpoint' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2017-03-12 16:24:15 +00:00
|
|
|
<th ng-if="applicationState.application.authentication">
|
2017-05-23 18:56:10 +00:00
|
|
|
<a ui-sref="volumes" ng-click="order('ResourceControl.Ownership')">
|
2017-03-12 16:24:15 +00:00
|
|
|
Ownership
|
2017-05-23 18:56:10 +00:00
|
|
|
<span ng-show="sortType == 'ResourceControl.Ownership' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'ResourceControl.Ownership' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2017-03-12 16:24:15 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-07-09 16:49:36 +00:00
|
|
|
<tr dir-paginate="volume in (state.filteredVolumes = (volumes | filter:{dangling: state.danglingVolumesOnly} | filter:state.filter | orderBy:sortType:sortReverse | itemsPerPage: state.pagination_count))">
|
2016-06-02 05:34:03 +00:00
|
|
|
<td><input type="checkbox" ng-model="volume.Checked" ng-change="selectItem(volume)"/></td>
|
2017-07-13 11:50:59 +00:00
|
|
|
<td>
|
|
|
|
<a ui-sref="volume({id: volume.Id})" class="monospaced">{{ volume.Id|truncate:25 }}</a>
|
|
|
|
<span style="margin-left: 10px;" class="label label-warning image-tag" ng-if="volume.dangling">Dangling</span></td>
|
|
|
|
</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ volume.Driver }}</td>
|
2017-07-13 11:50:42 +00:00
|
|
|
<td>{{ volume.Mountpoint | truncatelr }}</td>
|
2017-03-12 16:24:15 +00:00
|
|
|
<td ng-if="applicationState.application.authentication">
|
2017-05-23 18:56:10 +00:00
|
|
|
<span>
|
|
|
|
<i ng-class="volume.ResourceControl.Ownership | ownershipicon" aria-hidden="true"></i>
|
|
|
|
{{ volume.ResourceControl.Ownership ? volume.ResourceControl.Ownership : volume.ResourceControl.Ownership = 'public' }}
|
2017-03-12 16:24:15 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
2016-10-08 01:59:58 +00:00
|
|
|
<tr ng-if="!volumes">
|
2017-06-29 14:14:17 +00:00
|
|
|
<td colspan="5" class="text-center text-muted">Loading...</td>
|
2016-10-08 01:59:58 +00:00
|
|
|
</tr>
|
2017-07-09 16:49:36 +00:00
|
|
|
<tr ng-if="volumes.length === 0 || state.filteredVolumes.length === 0">
|
2017-06-29 14:14:17 +00:00
|
|
|
<td colspan="5" class="text-center text-muted">No volumes available.</td>
|
2016-10-07 04:55:09 +00:00
|
|
|
</tr>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-11-17 12:50:46 +00:00
|
|
|
<div ng-if="volumes" class="pull-left pagination-controls">
|
|
|
|
<dir-pagination-controls></dir-pagination-controls>
|
|
|
|
</div>
|
2016-06-02 05:34:03 +00:00
|
|
|
</div>
|
|
|
|
</rd-widget-body>
|
2017-07-08 08:23:00 +00:00
|
|
|
</rd-widget>
|
|
|
|
</div>
|