blob: 336b3b1de7657f851d5f59cf65d73f0e184e3427 (
plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
<div class="container-fluid common-main-container">
<div class="results-table" style="margin-top: 30px; overflow: scroll;">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Create Date</th>
<th>Organization name</th>
<th>Organization website</th>
<th>Product name</th>
<th>Product specifications</th>
<th>Product documentation</th>
<th>Product categories</th>
<th>Primary contact name</th>
<th>Primary business email</th>
<th>Primary postal address</th>
<th>Primary phone number</th>
<th>User ID</th>
<th>Description</th>
<th>SUT version</th>
<th>SUT HW version</th>
<th>OVP version</th>
<th>OVP category</th>
<th>Company logo</th>
<th>Approve date</th>
<th>Test ID</th>
<th>Location</th>
<th>Operation</th>
</tr>
</thead>
<script type="text/ng-template" id="product.tpl.html">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" value="{{app.product_spec}}">
</div>
<div class="input-group">
<span class="input-group-addon">@</span>
<input type="text" value="{{app.product_documentation}}">
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-map-marker"></i></span>
<input type="text" value="{{app.product_categories | category}}">
</div>
</script>
<script type="text/ng-template" id="lab.tpl.html">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" value="{{app.lab_name}}">
</div>
<div class="input-group">
<span class="input-group-addon">@</span>
<input type="text" value="{{app.lab_email}}">
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-map-marker"></i></span>
<input type="text" value="{{app.lab_address}}">
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-phone"></i></span>
<input type="text" value="{{app.lab_phone}}">
</div>
</script>
<tbody style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<tr ng-if="auth.currentUser.role.indexOf('administrator') != -1"
ng-repeat="app in ctrl.applications">
<td>{{ app.creation_date | limitTo: 10 }}</td>
<td>{{ app.organization_name }}</td>
<td><a href="{{app.organization_web}}">{{ app.organization_web }}</a></td>
<td>{{ app.product_name}}</td>
<td><a href="{{app.product_spec}}">{{app.product_spec}}</a></td>
<td><a href="{{app.product_documentation}}">{{app.product_documentation}}</a></td>
<td>{{ app.product_categories | category }}</td>
<td>{{ app.prim_name }}</td>
<td>{{ app.prim_email }}</td>
<td>{{ app.prim_address }}</td>
<td>{{ app.prim_phone }}</td>
<td>{{ app.owner }}</td>
<td>{{ app.description }}</td>
<td>{{ app.sut_version }}</td>
<td>{{ app.sut_hw_version }}</td>
<td>{{ app.ovp_version }}</td>
<td>{{ app.ovp_category }}</td>
<td>{{ app.company_logo }}</td>
<td>{{ app.approve_date }}</td>
<td>{{ app.test_id }}</td>
<td>
<span popover-enable="app.lab_location != 'internal'" uib-popover-template="ctrl.lab_tpl"
popover-title="Lab Info" popover-placement="top"
popover-trigger="mouseenter">{{ app.lab_location | labLocation}}</span>
<i ng-if="app.lab_location != 'internal'" class="glyphicon glyphicon-info-sign opnfv-blue"></i>
</td>
<td>
<a ng-click="ctrl.toggleApproveApp(app._id, 'true', app.owner)" class="badge badge-info"
ng-if="app.approved == 'false'"
data-toggle="tooltip" title="Approve Application">
<i class="glyphicon glyphicon-ok" ></i>
</a>
<a ng-click="ctrl.deleteApp(app._id)" class="badge badge-info"
data-toggle="tooltip" title="Delete Application">
<i class="glyphicon glyphicon-remove" ></i>
</a>
</td>
</tr>
</tbody>
</table>
<div class="pages">
<uib-pagination
total-items="ctrl.totalItems"
ng-model="ctrl.currentPage"
items-per-page="ctrl.itemsPerPage"
max-size="ctrl.maxSize"
class="pagination-sm"
boundary-links="true"
rotate="false"
num-pages="ctrl.numPages"
ng-change="ctrl.updatePage()">
</uib-pagination>
</div>
</div>
</div>
|