From 28fec1cce5f2680f302eed04afb108a44be5839b Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 15 Apr 2021 18:10:31 +0200 Subject: [PATCH] Demo offer selection --- templates/auction/offer_select.html | 16 ++++++++++++- templates/auction/offer_table.js | 36 +++++++++++++++++------------ 2 files changed, 36 insertions(+), 16 deletions(-) diff --git a/templates/auction/offer_select.html b/templates/auction/offer_select.html index 12a4e52..8810468 100644 --- a/templates/auction/offer_select.html +++ b/templates/auction/offer_select.html @@ -6,7 +6,21 @@ {% endblock %} {% block "content" %} -
+ +
+
+
+
+
+
+

Angebote vergleichen

+
+
+
+
+
+
+
{% endblock %} {% block "scripts" %} diff --git a/templates/auction/offer_table.js b/templates/auction/offer_table.js index abe0a0a..9e10b89 100644 --- a/templates/auction/offer_table.js +++ b/templates/auction/offer_table.js @@ -1,32 +1,38 @@ +{% load offeroptions %} !(function(){ var myTabella = new Tabella( document.getElementById('offers'), { + from: "", tableHeader: [ - ['2014-12-14', '2014-12-20'] - ,['2014-12-21', '2015-1-10'] - ,['2015-2-1', '2015-3-7'] - ,['2015-3-8', '2015-3-21'] - ,['2015-3-22', '2015-4-7'] + ['Habbo Hotel
{% autoescape off %}{% stars 3 1 orange %}{% endautoescape %}
'], + ['Kumi Systems
{% autoescape off %}{% stars 1 0 orange %}{% endautoescape %}
'], ], rows : [ { - rowHeader: 'Single bed room', - rowVal: [[190 , 210, 210, 204, 180],[190 , 210, 210, 204, 180]], - rowDesc : ['1 persona', '2 persone'] + rowVal: [["1. Mai 2021", "1. Mai 2021"],["3. Mai 2021", "10. Mai 2021"],["2 Nächte", "9 Nächte"]], + rowDesc: ["Anreise", "Abreise", "Dauer"] }, { - rowHeader: 'Double bed room', - rowVal: [[190 , 210, 210, 204, 180]], - rowDesc : ['1 persona'] + rowVal: [[{% autoescape off %}'{% hearts 3 red %} (304)', '{% hearts 5 red %} (1)'{% endautoescape %}]], + rowDesc: ["Bewertungen"] }, { - rowHeader: 'Suite', - rowVal: [[190 , 210, 210, 204, 180]], - rowDesc : ['1 persona'] + rowVal: [['Doppelzimmer Luxus', 'Wohnzimmer'], ["1 King-Size Bett", "1 Couch"]], + rowDesc: ["Zimmerart", "Betten"] + }, + { + rowVal: [['Romantikpaket inkl. Frühstück am Bett, 2x 60 Minuten Hot-Stone-Massage, 0,75l Prosecco, Obstschale, Zugang zum Spa', 'Gratis Arbeitsgelegenheit inklusive!']], + rowDesc: ["Zusätzliche Angaben"] + }, + { + rowVal: [ + [200, 200], + ['', ''] + ], + rowDesc: ["Fixpreis", ""] } - ] }); })(); \ No newline at end of file