diff --git a/client-barcode/doc/freitagskasse.svg b/client-barcode/doc/freitagskasse.svg index d98e018..e6d543c 100644 --- a/client-barcode/doc/freitagskasse.svg +++ b/client-barcode/doc/freitagskasse.svg @@ -16,7 +16,7 @@ inkscape:version="0.48.2 r9819" sodipodi:docname="freitagskasse.svg">
{% if not item.isDeposit %}
-
+
{% else %}
{{ item.buyable.name }} Pfand
{% endif %}
diff --git a/k4ever/buyable/templates/buyables/product_list.html b/k4ever/buyable/templates/buyables/product_list.html
new file mode 100644
index 0000000..aea79c0
--- /dev/null
+++ b/k4ever/buyable/templates/buyables/product_list.html
@@ -0,0 +1,42 @@
+{% load thumbnail %}
+
+{% if buyables %}
+
{{ default|default_if_none:"Noch keine gekauft" }} +{% endif %} diff --git a/k4ever/buyable/templates/buyables/showItem.html b/k4ever/buyable/templates/buyables/showItem.html index 67774d7..f7be065 100644 --- a/k4ever/buyable/templates/buyables/showItem.html +++ b/k4ever/buyable/templates/buyables/showItem.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% load thumbnail %} + {% block "content" %} @@ -10,7 +12,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{ item.name }}
-
+
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- - | -
- {{ 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 %} - |
-
---|
- + | -{{ buyable.buyable__name }} ({{ buyable.num_buys }} mal gekauft) | -+ | {{ buyable.buyable__name }} {% if buyable.num_buys %}({{ buyable.num_buys }} mal gekauft){% endif %} | +{% if buyable.buyable__deposit > 0 %} - Kaufen (Ohne Pfand) - Kaufen (Mit Pfand) + {{ buyable.buyable__price|floatformat:2 }}€ + {{ buyable.buyable__price|floatformat:2 }} € / {{ buyable.buyable__deposit|floatformat:2 }}€ {% if includeDeposit %} - Kaufen (Nur Pfand) + {{ buyable.buyable__deposit|floatformat:2 }}€ {% endif %} {% else %} - Kaufen + {{ buyable.buyable__price|floatformat:2 }}€ {% endif %} |
{{ default|default_if_none:"Noch keine gekauft" }}
-{% endif %} \ No newline at end of file +{% endif %} diff --git a/k4ever/main/templates/main/search-form.html b/k4ever/main/templates/main/search-form.html index ee23016..569b997 100644 --- a/k4ever/main/templates/main/search-form.html +++ b/k4ever/main/templates/main/search-form.html @@ -1,6 +1,6 @@ - \ No newline at end of file + diff --git a/k4ever/main/templates/main/startpage.html b/k4ever/main/templates/main/startpage.html index c0c2040..2068a53 100644 --- a/k4ever/main/templates/main/startpage.html +++ b/k4ever/main/templates/main/startpage.html @@ -2,7 +2,7 @@ {% block "content" %} {% if allMostDrinks or allMostSnacks %} -@@ -14,25 +14,25 @@ | |||||||||||||||||||||||||||||||||||
Getränke | -+ | {% include "main/product_list.html" with buyables=allMostDrinks %} | -+ | {% include "main/product_list.html" with buyables=usersMostDrinks %} | -+ | {% include "main/product_list.html" with buyables=usersLastDrinks %} | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Snacks | -+ | {% include "main/product_list.html" with buyables=allMostSnacks %} | -+ | {% include "main/product_list.html" with buyables=usersMostSnacks %} | -+ | {% include "main/product_list.html" with buyables=usersLastSnacks %} |
Name | -Author | -Version | -Beschreibung | -AuthBlob | -Erlauben/Verbieten | +
---|
Erlaubt | + {% else %} ++ {% endif %} + | Name | +Author | +Beschreibung | +AuthBlob | +Erlauben/Verbieten |
---|---|---|---|---|---|---|
{{ p.plugin.name }} | -{{ p.plugin.author }} | -{{ p.plugin.version }} | -{{ p.plugin.descr }} | -+ | ||
{{ p.plugin.name }} {{ p.plugin.version }} |
+ {{ p.plugin.author }} | +{{ p.plugin.descr }} |
+
{% if p.plugin.userCanWriteAuthblob %}
-
+
+
+
{% else %}
{% if p.plugin.userCanReadAuthblob %}
{{ p.authblob }}
@@ -45,20 +49,22 @@
{% endif %}
{% endif %}
|
- Plugin verbieten | +Plugin verbieten | |
{{ plugin.name }} | -{{ plugin.author }} | -{{ plugin.version }} | -{{ plugin.descr }} | -- | Plugin erlauben | -|
Verboten | + {% for plugin in unallowed %} +{{ plugin.name }} {{ plugin.version }} |
+ {{ plugin.author }} | +{{ plugin.descr }} |
+ + | Plugin erlauben | +|