Commit b9952501 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

shouldn't be able to mark listing sold unless there are bids

parent da62ba47
......@@ -169,14 +169,16 @@ SRCT Bookshare • {{ listing.title }}
{% if request.user == listing.seller.user %}
<div class="col-md-6 col-md-offset-3">
<h3>
{% if not listing.sold and not listing.cancelled %}
<span class="label label-default">
<a href="{% url 'sell_listing' listing.slug %}">Mark Sold</a>
</a></span>
{% elif not listing.cancelled %}
<span class="label label-default">
<a href="{% url 'unsell_listing' listing.slug %}">Cancel Sale</a>
</span>
{% if bid_count > 0 %}
{% if not listing.sold and not listing.cancelled %}
<span class="label label-default">
<a href="{% url 'sell_listing' listing.slug %}">Mark Sold</a>
</a></span>
{% elif not listing.cancelled %}
<span class="label label-default">
<a href="{% url 'unsell_listing' listing.slug %}">Cancel Sale</a>
</span>
{% endif %}
{% endif %}
&nbsp;
{% if not listing.sold and not listing.cancelled %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment