forked from openiap/opencore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomers.html
More file actions
35 lines (35 loc) · 1.71 KB
/
Copy pathCustomers.html
File metadata and controls
35 lines (35 loc) · 1.71 KB
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
<div class="row">
<h1 translate lib="web">customers</h1>
</div>
<div class="col-sm-12 text-right">
<em class="fas fa-cog fa-spin" ng-show="ctrl.loading==true" title="Hang on, loading data"></em>
<!-- <em class="fas fa-cog" ng-show="ctrl.loading!=true" title="I spin, while loading data"></em> -->
<a href="#/Customer" class="btn btn-info" translate lib="web"
ng-show="menuctrl.hasrole('customer admins') || menuctrl.hasrole('resellers')">addcustomer</a>
</div>
<div ng-show="ctrl.errormessage != ''" class=" alert alert-danger" role="alert">{{ctrl.errormessage}}</div>
<table id="table1" class="table table-striped" when-scrolled="ctrl.more()" style="width: 100%;">
<caption>Customers</caption>
<thead class="thead-dark">
<tr>
<th ng-click="ctrl.ToggleOrder('name')" scope="col"><strong translate lib="web">name</strong></th>
<th class="w-150" ng-click="ctrl.ToggleOrder('_created')" scope="col"><strong translate lib="web">created</strong>
</th>
<th class="w-150" scope="col"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="model in ctrl.models">
<td><a style="color: inherit; text-decoration: inherit;" ng-href="#/Customer/{{model._id}}">{{model.name}}</a></td>
<td>
<timesince ng-model="model._created" />
</td>
<td>
<a class="btn" ng-href="#/Customer/{{model._id}}" ng-disabled="ctrl.loading==true"><em class="fas fa-edit"></em></a>
<a class="btn" href ng-click="ctrl.DeleteOne(model)" ng-disabled="ctrl.loading==true"
ng-class="{'btn-danger': ctrl.shiftdown==true && ctrl.collection == 'users' && (model._type == 'user' || model._type == 'customer')}"><em
class="fas fa-trash"></em></a>
</td>
</tr>
</tbody>
</table>