showItem: *fix: BuyDeposit-button where there is no deposiyyy
This commit is contained in:
parent
7e608ae6af
commit
7da1e4875b
|
@ -19,6 +19,7 @@
|
|||
<span><span>{{ item.price|floatformat:2 }}€</span></span>
|
||||
</a>
|
||||
|
||||
{% if item.hasDeposit %}
|
||||
<a class="button buy inclDeposit" href="/store/buy/{{ item.id }}/with/deposit/">
|
||||
<span><span>{{ item.price|floatformat:2 }}€ / {{ item.deposit|floatformat:2 }}€</span></span>
|
||||
</a>
|
||||
|
@ -27,6 +28,7 @@
|
|||
href="/store/buy/{{ item.id }}/only/deposit/">
|
||||
<span><span>{{ item.deposit|floatformat:2 }}€</span></span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<h3>Beschreibung</h3>
|
||||
|
|
Loading…
Reference in New Issue