<div class="blade-content __medium-wide">
  <div class="blade-inner">
    <div class="inner-block" ng-init="setGridOptions({
                rowTemplate: 'configuration-product.row.html',
                data: 'blade.items',
                rowHeight: 61,
                enableSorting: false,
                columnDefs: [
                    {
                        name: 'imageUrl', displayName: 'orders.blades.customerOrder-item-configuration.labels.picture',
                        enableColumnResizing: false, width: 75, cellTemplate: 'configuration-item-list-icon.cell.html'
                    },
                    { name: 'name', displayName: 'orders.blades.customerOrder-item-configuration.labels.product-name'},
                    { name: 'quantity', displayName: 'orders.blades.customerOrder-item-configuration.labels.quantity', width: 120 }
                ]})">
      <div class="table-wrapper" ng-if="blade.items.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.items.length">{{ 'orders.blades.customerOrder-item-configuration.description.no-products' | translate }}</div>
    </div>
  </div>
</div>

<script type="text/ng-template" id="configuration-product.row.html">
  <div ng-click='grid.appScope.selectNode(row.entity)' 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, '__selected': row.entity.id ===grid.appScope.selectedNodeId}" role="{{col.isRowHeader ? 'rowheader' : 'gridcell' }}" ui-grid-cell></div>
</script>

<script type="text/ng-template" id="configuration-item-list-icon.cell.html">
  <div class="ui-grid-cell-contents">
    <div class="product-img">
      <img class="image" ng-src="{{COL_FIELD}}" ng-if="COL_FIELD">
      <span class="table-ico fas fa-image" ng-if="!COL_FIELD"></span>
    </div>
  </div>
</script>