Show wishes on offer page
This commit is contained in:
parent
4e7b8ec340
commit
eaebcaad57
4 changed files with 59 additions and 1 deletions
|
@ -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 %}
|
Reference in a new issue