diff --git a/make_post_sell/templates/product.j2 b/make_post_sell/templates/product.j2 index 7d9dff1..58eba17 100644 --- a/make_post_sell/templates/product.j2 +++ b/make_post_sell/templates/product.j2 @@ -217,11 +217,42 @@ {% endif %} {% endif %} {% else %} +{% if product.is_buy_now_allowed %}
{% include "snippets/csrf.j2" %}
+{% endif %} + {% endif %} + + {# MPS-20: View Auction link when product is in auction mode. #} + {% if product.is_auction and product.auction %} +

+ + View live auction → + +

+ {% endif %} + + {# MPS-21: Make Offer button when offers are allowed for this product. #} + {% if product.offers_allowed and request.user and request.user.authenticated and request.user not in product.shop.owners %} +
+ Make an offer +
+ {% include "snippets/csrf.j2" %} + + + + +
+
+ {% elif product.offers_allowed and (not request.user or not request.user.authenticated) %} +

+ + Log in to make an offer + +

{% endif %}
diff --git a/make_post_sell/templates/product_edit.j2 b/make_post_sell/templates/product_edit.j2 index 7e71238..5752f1e 100644 --- a/make_post_sell/templates/product_edit.j2 +++ b/make_post_sell/templates/product_edit.j2 @@ -262,6 +262,74 @@ Your cover (thumbnail1) will show up on search pages.

+ + {# MPS-20 + MPS-21: pricing mode #} +
+ Pricing mode + + + + + +
+ +
+ + {# MPS-21: per-product offer override #} + {% if product.is_offer_mode %} +
+ Allow offers (override shop default) + + + +
+ +
+ {% endif %} + + {% if product.auction %} +

+ + View live auction page + + (state: {{ product.auction.state_human }}) +

+ +
+ {% endif %} {% endif %}