-
Notifications
You must be signed in to change notification settings - Fork 0
/
products.html
44 lines (40 loc) · 2.19 KB
/
products.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
<div class="management-table" ng-controller="ProductController">
<alerts seconds="45" channels="products" types="INVALID, ERROR"></alerts>
<button class="btn btn-default view-action-button" ng-click="openModal('#addProductModal')">Add a Product</button>
<hr />
<table class="table table-bordered table-striped product-table">
<tr>
<th>Product</th>
<th>Remote Project Manager</th>
<th>Remote Project</th>
<th>Scope Id</th>
<th class="actions-column text-center">Actions</th>
</tr>
<tr ng-repeat="product in products | orderBy: 'name'">
<td title="'Product'">{{product.name}}</td>
<td title="'Remote Project Manager'">
<div ng-repeat="rpi in distinctRemoteProjectManagers(product.remoteProjectInfo)" class="product-rpm-row">
<remote-projects-icon type="{{rpi.remoteProjectManager.type}}" class="pull-right"></remote-projects-icon>
<span>{{rpi.remoteProjectManager.name}}</span>
</div>
</td>
<td title="'Remote Project'">
<div ng-repeat="rpi in distinctRemoteProjectManagers(product.remoteProjectInfo)" class="product-rpm-row">
<div>{{getRemoteProjectByRemoteProjectInfo(rpi).name}}</div>
</div>
</td>
<td title="'Scope Id'">
<div ng-repeat="rpi in distinctRemoteProjectManagers(product.remoteProjectInfo)">
<div>{{rpi.scopeId}}</div>
</div>
</td>
<td class="actions-column text-center" title="'Actions'">
<span class="glyphicon glyphicon-pencil" title="edit" ng-click="editProduct(product)"></span>
<span class="glyphicon glyphicon-trash" title="delete" ng-click="confirmDeleteProduct(product)"></span>
</td>
</tr>
</table>
<modal modal-id="addProductModal" modal-view="views/modals/addProductModal.html" modal-header-class="modal-header-primary" wvr-modal-backdrop="static"></modal>
<modal modal-id="deleteProductModal" modal-view="views/modals/deleteProductModal.html" modal-header-class="modal-header-danger" wvr-modal-backdrop="static"></modal>
<modal modal-id="editProductModal" modal-view="views/modals/editProductModal.html" modal-header-class="modal-header-primary" wvr-modal-backdrop="static"></modal>
</div>