fix(support): enforce minimum purchase amount (#2891)

* fix(support): enforce minimum purchase amount

* Update app/portainer/views/support/product/product.html

Co-Authored-By: Anthony Lapenna <lapenna.anthony@gmail.com>

* fix(support): fix product img tags for webpack
pull/2900/head^2
William 2019-05-24 17:57:27 +12:00 committed by Anthony Lapenna
parent 6be394c2e0
commit 8025d4c817
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,8 @@
<div class="blocklist-item-box">
<!-- extension-image -->
<span class="blocklist-item-logo">
<img class="blocklist-item-logo" ng-src="images/support_{{ $ctrl.model.Id }}.png" />
<img class="blocklist-item-logo" ng-if="$ctrl.model.Id == 1" src="../../../../../assets/images/support_1.png" />
<img class="blocklist-item-logo" ng-if="$ctrl.model.Id == 2" src="../../../../../assets/images/support_2.png" />
</span>
<!-- !extension-image -->
<!-- extension-details -->

View File

@ -51,9 +51,9 @@
</div>
</div>
<div style="margin-top: 15px;" ng-disabled="!formValues.hostCount">
<a href="https://portainer.io/checkout/?add-to-cart={{ product.ProductId }}&quantity={{ formValues.hostCount }}" target="_blank" class="btn btn-primary btn-sm" style="width: 100%; margin-left: 0;">
Buy
<div style="margin-top: 15px;" >
<a href="https://portainer.io/checkout/?add-to-cart={{ product.ProductId }}&quantity={{ formValues.hostCount }}" target="_blank">
<button ng-disabled="!formValues.hostCount || formValues.hostCount < 10" class="btn btn-primary btn-sm" style="width: 100%; margin-left: 0;">Buy</button>
</a>
</div>