|
<span page-title>{{ 'Product Bulk Actions' | translate }}</span>
|
|
|
|
<section class="nutupane-details" ng-cloak alch-container-scroll>
|
|
<header class="details-header">
|
|
<h2 class="fl" translate>Bulk Actions</h2>
|
|
|
|
<div class="fr">
|
|
<button class="btn btn-default"
|
|
ng-disabled="product.readonly || removeProducts.workingMode"
|
|
ng-click="openModal()"
|
|
ng-hide="removeProducts.workingMode">
|
|
<i class="icon-trash"></i>
|
|
{{ "Remove Products" | translate }}
|
|
</button>
|
|
|
|
<span ng-show="removeProducts.workingMode">
|
|
<i class="icon-spinner inline-icon icon-spin"></i>
|
|
<span>{{ "Removing Products" | translate }}</span>
|
|
</span>
|
|
|
|
<button class="btn btn-default" ui-sref="products.index">
|
|
<i class="icon-remove"></i>
|
|
{{ "Close" | translate }}
|
|
</button>
|
|
|
|
<div alch-modal="removeProducts()" model="table"
|
|
modal-header='Remove {{ productTable.getSelected().length }} Products?'
|
|
modal-body='Are you sure you want to remove the {{ productTable.getSelected().length }} products(s) selected?'>
|
|
</div>
|
|
|
|
</div>
|
|
</header>
|
|
|
|
<nav class="details-navigation">
|
|
<ul>
|
|
<li>
|
|
<a translate
|
|
ui-sref="products.bulk-actions.sync"
|
|
ng-class="{active: stateIncludes('products.bulk-actions.sync')}">
|
|
Product Sync
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a translate
|
|
ui-sref="products.bulk-actions.sync-plan"
|
|
ng-class="{active: stateIncludes('products.bulk-actions.sync-plan')}">
|
|
Alter Sync Plans
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<div>
|
|
<div alch-alert success-messages="successMessages" error-messages="errorMessages"></div>
|
|
|
|
<div class="alert warning alert-warning" ng-show="table.numSelected == 0">
|
|
<i class="icon-exclamation-sign"></i>
|
|
{{ 'At least one product needs to be selected in order to perform a bulk action.' | translate }}
|
|
</div>
|
|
|
|
<span ng-hide="table.numSelected == 0">
|
|
<div ui-view></div>
|
|
</span>
|
|
</div>
|
|
|
|
</section>
|