{% load offeroptions %}
!(function(){
var myTabella = new Tabella(
document.getElementById('offers'),
{
from: "",
tableHeader: [
{% for offer in object_list %}['{{ offer.roomcategory.establishment.name }}
{% if offer.roomcategory.establishment.image %}
{% endif %}'],{% endfor %}
],
rows : [
{
rowVal: [
[{% for offer in object_list %}'{{ offer.inquiry.arrival }}',{% endfor %}],
[{% for offer in object_list %}'{{ offer.departure }}',{% endfor %}],
[{% for offer in object_list %}'{{ offer.nights }} Nächte',{% endfor %}]
],
rowDesc: ["Anreise", "Abreise", "Dauer"]
},
{
rowVal: [
[{% for offer in object_list %}'{% autoescape off %}{% stars offer.roomcategory.establishment.stars offer.roomcategory.establishment.superior orange %}{% endautoescape %}',{% endfor %}],
[{% for offer in object_list %}{% autoescape off %}'{% hearts 3 red %} (304)'{% endautoescape %},{% endfor %}]
],
rowDesc: ["Sterne", "Bewertungen"]
},
{
rowVal: [
[{% for offer in object_list %}'{{ offer.roomcategory.name }}',{% endfor %}],
[{% for offer in object_list %}' ',{% endfor %}]
],
rowDesc: ["Zimmerkategorie", "Betten"]
},
{
rowVal: [
[{% for offer in object_list %}'',{% endfor %}],
[{% for offer in object_list %}'{{ offer.distance | floatformat:1 }} km',{% endfor %}],
[{% for offer in object_list %}'{% if offer.comment %}{{ offer.comment }}{% else %} {% endif %}',{% endfor %}]
],
rowDesc: ["Ausstattung", "Distanz zum Wunschort", "Zusätzliche Angaben"]
},
{
rowVal: [
[{% for offer in object_list %}'€ {{ offer.inquiry.budget }}',{% endfor %}],
[{% for offer in object_list %}'',{% endfor %}]
],
rowDesc: ["Fixpreis", ""]
}
]
});
})();