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.

showItem.html 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {% extends "base.html" %}
  2. {% comment %}
  3. # This file is part of k4ever, a point-of-sale system
  4. # Contact............ <k4ever@lists.someserver.de>
  5. # Website............ http://k4ever.someserver.de/
  6. # Bug tracker........ http://k4ever.someserver.de/report
  7. #
  8. # Licensed under GNU Affero General Public License v3 or later
  9. {% endcomment %}
  10. {% load thumbnail %}
  11. {% block "content" %}
  12. <a class="btn" href="/store/">Zur Liste aller Produkte</a>
  13. {% if item %}
  14. <div class="singleItem" >
  15. <div class="productImage">
  16. <img src="{% thumbnail item.image 400x400 %}">
  17. </div>
  18. <div class="productMeta">
  19. <div>
  20. <h2>{{ item.name }}</h2>
  21. <h3>Kaufen</h3>
  22. <div class="btn-group" data-image="{% thumbnail item.image 48x48 %}" data-name="{{ item.name }}" data-id="{{ item.id }}">
  23. <a class="button buy" href="/store/buy/{{ item.id }}/">
  24. <span><span>{{ item.price|floatformat:2 }}€</span></span>
  25. </a>
  26. {% if item.hasDeposit %}
  27. <a class="button buy inclDeposit" href="/store/buy/{{ item.id }}/with/deposit/">
  28. <span><span>{{ item.price|floatformat:2 }}€ / {{ item.deposit|floatformat:2 }}€</span></span>
  29. </a>
  30. <a class="button buy onlyDeposit"
  31. href="/store/buy/{{ item.id }}/only/deposit/">
  32. <span><span>{{ item.deposit|floatformat:2 }}€</span></span>
  33. </a>
  34. {% endif %}
  35. </div>
  36. <h3>Beschreibung</h3>
  37. <div class="description">"{{ item.description }}"</div>
  38. <h3>Kategorie{{ item.buyableType.all.count|pluralize:"n"}}</h3>
  39. <ul>
  40. {% for type in item.buyableType.all %}
  41. <li>{{ type }}</li>
  42. {% endfor %}
  43. </ul>
  44. </div>
  45. </div>
  46. </div>
  47. {% else %}
  48. Produkt wurde nicht gefunden
  49. {% endif %}
  50. {% endblock %}