/
activation-key-subscriptions-list.html
87 lines (77 loc) · 4.03 KB
/
activation-key-subscriptions-list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<span page-title ng-model="activationKey">{{ 'Current Subscriptions for Activation Key:' | translate }} {{ activationKey.name }}</span>
<section class="nutupane-sub-section" >
<div class="row">
<div class="col-sm-3">
<div class="input-group input-group">
<input type="text"
class="form-control"
placeholder="{{ 'Search...' | translate }}"
ng-model="subscriptionsTable.searchTerm"
bst-on-enter="subscriptionsTable.search(subscriptionsTable.searchTerm)"/>
<span class="input-group-btn">
<button ng-click="subscriptionsTable.search(subscriptionsTable.searchTerm)" class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
</span>
</div>
</div>
<div class="col-sm-3 nutupane-info">
<span translate>Showing {{ subscriptionsTable.rows.length }} of {{ subscriptionsTable.resource.subtotal }} ({{ subscriptionsTable.resource.total }} Total) Subscriptions</span>
</div>
<div class="pull-right">
<div class="pull-left nutupane-info">
<span translate>{{ subscriptionsTable.numSelected }} Selected</span>
</div>
<div class="nutupane-actions pull-right">
<button class="btn btn-primary"
translate
ng-hide="denied('edit_activation_keys', activationKey)"
ng-disabled="disableRemoveButton()"
ng-click="removeSelected()">
Remove Selected
</button>
</div>
</div>
</div>
<div bst-table="subscriptionsTable" class="nutupane">
<div bst-container-scroll>
<div infinite-scroll="subscriptionsTable.nextPage()" infinite-scroll-container="'.nutupane-sub-section .container-scroll-wrapper'">
<div class="loading-mask fa-3x" ng-show="subscriptionsTable.working && subscriptionsTable.rows.length == 0">
<i class="fa fa-spinner fa-spin"></i>
{{ "Loading..." | translate }}
</div>
<table ng-class="{'table-mask': subscriptionsTable.working}" class="table table-full table-striped">
<thead>
<tr bst-table-head row-select>
<th bst-table-column="quantity" sortable class="align-center"><span translate>Quantity</span></th>
<th bst-table-column="attached" sortable><span translate>Attached</span></th>
<th bst-table-column="type"><span translate>Type</span></th>
<th bst-table-column="startDate" sortable><span translate>Starts</span></th>
<th bst-table-column="endDate" sortable><span translate>Expires</span></th>
<th bst-table-column="supportLevel"><span translate>Support Level</span></th>
<th bst-table-column="contractNumber" sortable><span translate>Contract</span></th>
<th bst-table-column="accountNumber" sortable><span translate>Account</span></th>
</tr>
</thead>
<tbody>
<tr bst-table-row ng-repeat-start="(name, subscriptions) in groupedSubscriptions">
<td bst-table-cell colspan="9">
<a href='/subscriptions?search=product_name:"{{ name }}"'>
{{ name }}
</a>
</td>
</tr>
<tr bst-table-row ng-repeat-end ng-repeat="subscription in subscriptions" row-select="subscription">
<td bst-table-cell>{{ subscription | subscriptionAttachAmountFilter }}</td>
<td bst-table-cell>{{ subscription | subscriptionConsumedFilter }}</td>
<td bst-table-cell><div subscription-type="subscription"></div></td>
<td bst-table-cell>{{ subscription.start_date | date:"shortDate" }}</td>
<td bst-table-cell>{{ subscription.end_date | date:"shortDate" }}</td>
<td bst-table-cell>{{ subscription.service_level }}</td>
<td bst-table-cell>{{ subscription.contract_number }}</td>
<td bst-table-cell>{{ subscription.account_number }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>