2021-04-15 16:10:31 +00:00
|
|
|
{% load offeroptions %}
|
2021-04-15 08:34:31 +00:00
|
|
|
!(function(){
|
|
|
|
|
|
|
|
var myTabella = new Tabella(
|
|
|
|
document.getElementById('offers'),
|
|
|
|
{
|
2021-04-15 16:10:31 +00:00
|
|
|
from: "",
|
2021-04-15 08:34:31 +00:00
|
|
|
tableHeader: [
|
2021-04-20 06:36:59 +00:00
|
|
|
{% for offer in object_list %}['{{ offer.roomcategory.establishment.name }}<br/>{% autoescape off %}{% stars offer.roomcategory.establishment.stars offer.roomcategory.establishment.superior orange %}{% endautoescape %}{% if offer.roomcategory.establishment.image %}<br/><img style="max-height:100px;max-width:100%;" src="{{ offer.roomcategory.establishment.image.url }}"></img>{% endif %}'],{% endfor %}
|
2021-04-15 08:34:31 +00:00
|
|
|
],
|
|
|
|
rows : [
|
|
|
|
{
|
2021-04-20 06:36:59 +00:00
|
|
|
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 %}]
|
|
|
|
],
|
2021-04-15 16:10:31 +00:00
|
|
|
rowDesc: ["Anreise", "Abreise", "Dauer"]
|
2021-04-15 08:34:31 +00:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 06:36:59 +00:00
|
|
|
rowVal: [
|
|
|
|
[{% for offer in object_list %}{% autoescape off %}'{% hearts 3 red %} (304)'{% endautoescape %},{% endfor %}]
|
|
|
|
],
|
2021-04-15 16:10:31 +00:00
|
|
|
rowDesc: ["Bewertungen"]
|
2021-04-15 08:34:31 +00:00
|
|
|
},
|
|
|
|
{
|
2021-04-20 06:36:59 +00:00
|
|
|
rowVal: [
|
|
|
|
[{% for offer in object_list %}'{{ offer.roomcategory.name }}',{% endfor %}],
|
|
|
|
[{% for offer in object_list %}' ',{% endfor %}]
|
|
|
|
],
|
2021-04-15 16:10:31 +00:00
|
|
|
rowDesc: ["Zimmerart", "Betten"]
|
|
|
|
},
|
|
|
|
{
|
2021-04-20 06:36:59 +00:00
|
|
|
rowVal: [
|
|
|
|
[{% for offer in object_list %}'{{ offer.comment }}',{% endfor %}]
|
|
|
|
],
|
2021-04-15 16:10:31 +00:00
|
|
|
rowDesc: ["Zusätzliche Angaben"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rowVal: [
|
2021-04-20 06:36:59 +00:00
|
|
|
[{% for offer in object_list %}'€ {{ offer.inquiry.budget }}',{% endfor %}],
|
2021-04-20 11:37:36 +00:00
|
|
|
[{% for offer in object_list %}'<button data-offer-uuid="{{ offer.uuid }}" data-offer-name="{{ offer.roomcategory.establishment.name }}" data-toggle="modal" data-target="#accept-offer" class="btn btn-orange btn-block accept-button">Angebot annehmen!</button>',{% endfor %}]
|
2021-04-15 16:10:31 +00:00
|
|
|
],
|
|
|
|
rowDesc: ["Fixpreis", ""]
|
2021-04-15 08:34:31 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
})();
|