Partly implement gallery views in offer selection

This commit is contained in:
Kumi 2021-05-30 13:54:39 +02:00
parent 12e04ab4d4
commit 30a91d1ce7

View file

@ -6,7 +6,7 @@
{ {
from: "", from: "",
tableHeader: [ tableHeader: [
{% 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 %} {% for offer in object_list %}['{{ offer.roomcategory.establishment.name }}<br/>{% if offer.roomcategory.establishment.image %}<br/><img onclick="$(\'#gallery{{ offer.id }}\').modal(\'show\');" style="max-height:100px;max-width:100%;" src="{{ offer.roomcategory.establishment.image.url }}"></img>{% endif %}'],{% endfor %}
], ],
rows : [ rows : [
{ {
@ -19,9 +19,10 @@
}, },
{ {
rowVal: [ 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 %}] [{% for offer in object_list %}{% autoescape off %}'{% hearts 3 red %} (304)'{% endautoescape %},{% endfor %}]
], ],
rowDesc: ["Bewertungen"] rowDesc: ["Sterne", "Bewertungen"]
}, },
{ {
rowVal: [ rowVal: [
@ -32,7 +33,7 @@
}, },
{ {
rowVal: [ rowVal: [
[{% for offer in object_list %}'{{ offer.comment }}',{% endfor %}] [{% for offer in object_list %}'{% if offer.comment %}{{ offer.comment }}{% else %}&nbsp;{% endif %}',{% endfor %}]
], ],
rowDesc: ["Zusätzliche Angaben"] rowDesc: ["Zusätzliche Angaben"]
}, },