{% extends "base.html" %} {% block "content" %}
{% for item in items %} {% comment %} Buy it! {% if item.hasDeposit %} it+deposit! only deposit! {% endif %}
( {% for type in item.buyableType.all %} {{ type }} {% endfor %} ) {% endcomment %} {% endfor %}
{{ item.name }}
Details
Kaufen für {{ item.price|floatformat:2 }} €
{% if item.hasDeposit %} (Ohne Pfand){% endif %}
{% if item.hasDeposit %} Kaufen für {{ item.price|floatformat:2 }} €
+ {{ item.deposit|floatformat:2 }} € Pfand
{% else %}   {% endif %}
{% if item.hasDeposit %} Kaufen
nur {{ item.deposit|floatformat:2 }} € Pfand
{% else %}   {% endif %}
{% endblock %}