Show wishes on offer page

This commit is contained in:
Jannis Portmann 2021-05-04 12:33:58 +02:00
parent 4e7b8ec340
commit eaebcaad57
4 changed files with 59 additions and 1 deletions

View file

@ -16,6 +16,21 @@
From
</h3>
<p>{{ offer.byUser }} in {{ offer.zipCode }}</p>
<h3>Wishes</h3>
<p>{{ offer.byUser }} would like some of the following in return:</p>
<div class="mb-3">
{% if wishes == [] %}
<div class="alert alert-warning" role="alert">
There are currently no wishes!
</div>
{% else %}
<ul class="list-group">
{% for wish in wishes %}
<li class="list-group-item"> {{ wish.title }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</div>
{% endblock %}