Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(search): Update UI for add all to cart.
Browse files Browse the repository at this point in the history
- Updates Copy.

Closes #545
  • Loading branch information
Matthew Schranz committed Mar 13, 2015
1 parent 3e6bcdd commit 1d36176
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions app/scripts/cart/templates/add-to-cart-button-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,23 @@
</ul>
</div>
<div data-ng-if="addAllOnly">
<button class="btn btn-primary disabled" data-ng-if="CartService.getCartVacancySize() - paging.total < 0" disabled="disabled">
<span class="fa-stack">
<i class="fa fa-shopping-cart fa-stack-1x"></i>
<i class="fa fa-ban fa-stack-2x"></i>
</span>
<div data-ng-if="CartService.getCartVacancySize() - paging.total < 0">
<button class="btn btn-primary disabled" disabled="disabled">
<span class="fa-stack">
<i class="fa fa-shopping-cart fa-stack-1x"></i>
<i class="fa fa-ban fa-stack-2x"></i>
</span>
<span data-translate>Add all files to the cart</span>
</button>
<span data-translate>Cart can only hold {{ CartService.getCartVacancySize() }} more items</span>
</button>
<button class="btn btn-primary" data-ng-click="addAll()" data-ng-if="CartService.getCartVacancySize() - paging.total >= 0">
<span class="fa-stack">
<i class="fa fa-shopping-cart fa-stack-1x"></i>
</span>
<span data-translate>Add all in Search Result</span>
</button>
</div>
<div data-ng-if="CartService.getCartVacancySize() - paging.total >= 0">
<button class="btn btn-primary" data-ng-click="addAll()">
<span class="fa-stack">
<i class="fa fa-shopping-cart fa-stack-1x"></i>
</span>
<span data-translate>Add all files to the cart</span>
</button>
</div>

</div>

0 comments on commit 1d36176

Please sign in to comment.