No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

product_list.html 1.5KB

1234567891011121314151617181920212223242526272829
  1. {% load thumbnail %}
  2. {% if buyables %}
  3. <table class="itemList">
  4. <tbody>
  5. {% for buyable in buyables %}
  6. <tr>
  7. <td class="productImage">
  8. <a href="{% url buyable_show buyable.id %}"><img src="{% thumbnail buyable.image 64x64 %}" /></a>
  9. </td>
  10. <td class="name"><span>{{ buyable.name }}</span> {% if buyable.num_buys %}({{ buyable.num_buys }} mal gekauft){% endif %}</td>
  11. <td class="actions" data-image="{% thumbnail buyable.image 48x48 %}" data-name="{{ buyable.name }}" data-id="{{ buyable.id }}">
  12. {% if buyable.deposit > 0 %}
  13. <a class="button buy" href="{% url buyable_buy buyable.id %}" title="Kaufen (Ohne Pfand)"><span><span>{{ buyable.price|floatformat:2 }}€</span></span></a>
  14. <a class="button buy inclDeposit" href="{% url buyable_buy buyable.id "with/deposit" %}" title="Kaufen (Mit Pfand)"><span><span>{{ buyable.price|floatformat:2 }}€ / {{ buyable.deposit|floatformat:2 }}€</span></span></a>
  15. {% if includeDeposit %}
  16. <a class="button buy onlyDeposit" href="{% url buyable_buy buyable.id "only/deposit" %}" title="Kaufen (Nur Pfand)"><span><span>{{ buyable.deposit|floatformat:2 }}€</span></span></a>
  17. {% endif %}
  18. {% else %}
  19. <a class="button buy" href="{% url buyable_buy buyable.id %}" title="Kaufen"><span><span>{{ buyable.price|floatformat:2 }}€</span></span></a>
  20. {% endif %}
  21. </td>
  22. </tr>
  23. {% endfor %}
  24. </tbody>
  25. </table>
  26. {% else %}
  27. <p>{{ default|default_if_none:"Noch keine gekauft" }}</p>
  28. {% endif %}