48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block "content" %}
|
|
<div style="float:left; width=200;">
|
|
Sortieren nach <a href="/store/">Letzte Änderung</a> | <a href="?order=alphabet">Alphabet</a> | <a href="?order=price">Preis</a><br/>
|
|
<table class="showitem" width="864px" style="border-width:0px">
|
|
{% for item in items %}
|
|
<tr>
|
|
<td width="64px">
|
|
<a href="/store/show/{{ item.id }}"><img WIDTH=64 HEIGHT=64 src="{{ MEDIA_URL }}{{ item.image }}"></a>
|
|
</td>
|
|
<td width="200px" align="center">
|
|
<span style="font-size: large; font-weight:bold">{{ item.name }}</span><br/>
|
|
<a href="/store/show/{{ item.id }}" style="font-weight:bold">Details</a>
|
|
</th>
|
|
<td width="200px">
|
|
<a class="button" href="/store/buy/{{ item.id }}/">Kaufen für {{ item.price|floatformat:2 }} €<br/>{% if item.hasDeposit %} (Ohne Pfand){% endif %}</a>
|
|
</td>
|
|
<td width="200px">
|
|
{% if item.hasDeposit %}
|
|
<a class="button" href="/store/buy/{{ item.id }}/with/deposit/">Kaufen für {{ item.price|floatformat:2 }} € <br/>+ {{ item.deposit|floatformat:2 }} € Pfand</a>
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
</td>
|
|
<td width="200px">
|
|
{% if item.hasDeposit %}
|
|
<a class="button" href="/store/buy/{{ item.id }}/only/deposit/">Kaufen <br/>nur {{ item.deposit|floatformat:2 }} € Pfand</a>
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% comment %}
|
|
Buy <a href="/store/buy/{{ item.id }}/">it!</a>
|
|
{% if item.hasDeposit %}
|
|
<a href="/store/buy/{{ item.id }}/with/deposit/">it+deposit!</a>
|
|
<a href="/store/buy/{{ item.id }}/only/deposit/"> only deposit!</a>
|
|
{% endif %}
|
|
</br> (
|
|
{% for type in item.buyableType.all %}
|
|
{{ type }}
|
|
{% endfor %} )
|
|
</div>{% endcomment %}
|
|
{% endfor %}
|
|
</table>
|
|
{% endblock %}
|