admin-partitions-view.html
92 lines
| 3.9 KiB
| text/html
|
HtmlLexer
r85 | <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.partitions"></ng-include> | |||
r0 | ||||
r85 | <div ng-show="!$ctrl.loading.partitions"> | |||
r0 | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading"> | ||||
DELETE Daily Partitions | ||||
</div> | ||||
r85 | <form name="$ctrl.dailyPartitionsForm" | |||
novalidate ng-submit="$ctrl.partitionsDelete('dailyPartitions')" | ||||
r0 | class="form-inline" | |||
r85 | ng-class="{'has-error':$ctrl.dailyPartitionsForm.$invalid}"> | |||
r0 | ||||
<div class="panel-body"> | ||||
<input type="text" name="confirm" | ||||
r85 | placeholder="Enter CONFIRM to proceed" class="form-control input-autosize" confirm-validate required ng-model="$ctrl.dailyConfirm"> | |||
<input type="submit" class="btn btn-danger" ng-disabled="$ctrl.dailyPartitionsForm.$invalid"> | ||||
<input type="checkbox" ng-model="$ctrl.dailyChecked" ng-change="$ctrl.setCheckedList('dailyPartitions')"> Check All | ||||
r0 | ||||
</div> | ||||
<table class="table table-striped"> | ||||
<tr> | ||||
<th class="c1 date">Date</th> | ||||
<th class="c2 indices">Indices</th> | ||||
</tr> | ||||
r85 | <tr class="r{{$index}}" ng-repeat="row in $ctrl.dailyPartitions"> | |||
r0 | <td class="c1">{{row[0]}}</td> | |||
<td class="c2"> | ||||
<ul class="list-group"> | ||||
<li class="list-group-item" ng-repeat="partition in row[1].elasticsearch"> | ||||
<input name="es_index" type="checkbox" ng-model="partition.checked"> ES: {{partition.name}} | ||||
</li> | ||||
<li class="list-group-item" ng-repeat="partition in row[1].pg"> | ||||
<input name="pg_index" type="checkbox" ng-model="partition.checked"> PG: {{partition.name}} | ||||
</li> | ||||
</ul> | ||||
</td> | ||||
</tr> | ||||
</table> | ||||
</form> | ||||
</div> | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading"> | ||||
DELETE Permanent Partitions | ||||
</div> | ||||
r85 | <form name="$ctrl.permanentPartitionsForm" novalidate | |||
ng-submit="$ctrl.partitionsDelete('permanentPartitions')" | ||||
r0 | class="form-inline" | |||
r85 | ng-class="{'has-error':$ctrl.permanentPartitionsForm.$invalid}"> | |||
r0 | ||||
<div class="panel-body"> | ||||
<div class="form-group"> | ||||
<input type="text" name="confirm" | ||||
r85 | placeholder="Enter CONFIRM to proceed" class="form-control" confirm-validate required ng-model="$ctrl.permConfirm"> | |||
<input type="submit" class="btn btn-danger" ng-disabled="$ctrl.permanentPartitionsForm.$invalid"> | ||||
<input type="checkbox" ng-model="$ctrl.permChecked" ng-change="$ctrl.setCheckedList('permanentPartitions')"> Check All | ||||
r0 | </div> | |||
</div> | ||||
<table class="table table-striped"> | ||||
<tr> | ||||
<th class="c1 date">Date</th> | ||||
<th class="c2 indices">Indices</th> | ||||
</tr> | ||||
r85 | <tr class="r{{$index}}" ng-repeat="row in $ctrl.permanentPartitions"> | |||
r0 | <td class="c1">{{row[0]}}</td> | |||
<td class="c2"> | ||||
<ul class="list-group"> | ||||
<li class="list-group-item" ng-repeat="partition in row[1].elasticsearch"> | ||||
<input name="es_index" type="checkbox" ng-model="partition.checked"> ES: {{partition.name}} | ||||
</li> | ||||
<li class="list-group-item" ng-repeat="partition in row[1].pg"> | ||||
<input name="pg_index" type="checkbox" ng-model="partition.checked"> PG: {{partition.name}} | ||||
</li> | ||||
</ul> | ||||
</td> | ||||
</tr> | ||||
</table> | ||||
</form> | ||||
</div> | ||||
</div> | ||||