Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
b9952501
Commit
b9952501
authored
Apr 07, 2015
by
Daniel W Bond
Browse files
shouldn't be able to mark listing sold unless there are bids
parent
da62ba47
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/trades/templates/detail_listing.html
View file @
b9952501
...
...
@@ -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 %}
{% if not listing.sold and not listing.cancelled %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment