Improve pet accomodation formatting
This commit is contained in:
parent
ebe672b972
commit
70db886a81
|
@ -60,13 +60,13 @@ a:link {
|
|||
|
||||
<h4>Pet accommodations</h4>
|
||||
|
||||
<p>
|
||||
o.petStayInCar = 'G',<br>
|
||||
o.petLargeKennel = 'B',<br>
|
||||
o.petSmallKennel = 'K',<br>
|
||||
</p>
|
||||
{% set pets = {"G": "stay in car", "B": "large kennel", "K": "small kennel" } %}
|
||||
|
||||
<pre>{{ pet_accommodations | tojson }}</pre>
|
||||
<ul>
|
||||
{% for i in pet_accommodations if i.quantityAvailable and i.quantityAvailable > 0 %}
|
||||
<li>{{ pets[i.code] }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue