-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathoperation-discounts.tpl.html
More file actions
25 lines (22 loc) · 1.67 KB
/
operation-discounts.tpl.html
File metadata and controls
25 lines (22 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div class="blade-content __medium-wide">
<div class="blade-inner">
<div class="inner-block" ng-init="setGridOptions({
rowTemplate: 'discounts-list.row.html',
data: 'blade.currentEntity.discounts',
enableSorting: false,
columnDefs: [
{ name: 'name', displayName: 'orders.blades.customerOrder-item-discounts.labels.name'},
{ name: 'coupon', displayName: 'orders.blades.customerOrder-item-discounts.labels.coupon' },
{ name: 'discountAmount', displayName: 'orders.blades.customerOrder-item-discounts.labels.discountAmount' },
{ name: 'currency', displayName: 'orders.blades.customerOrder-item-discounts.labels.currency' }
]})">
<div class="table-wrapper" ng-if="(blade.currentEntity.discounts || []).length" style="margin: 0 -21px 0;">
<div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-save-state ui-grid-resize-columns ui-grid-move-columns ui-grid-pinning ui-grid-height></div>
</div>
<div class="note" ng-if="!(blade.currentEntity.discounts || []).length">{{ 'orders.blades.customerOrder-item-discounts.descr.no-discounts' | translate }}</div>
</div>
</div>
</div>
<script type="text/ng-template" id="discounts-list.row.html">
<div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.uid" ui-grid-one-bind-id-grid="rowRenderIndex + '-' + col.uid + '-cell'" class="ui-grid-cell" ng-class="{'ui-grid-row-header-cell': col.isRowHeader, '__hovered': grid.appScope.contextMenuEntity === row.entity}" role="{{col.isRowHeader ? 'rowheader' : 'gridcell' }}" ui-grid-cell></div>
</script>