implement deletion of wishes

This commit is contained in:
Jannis Portmann 2021-05-05 21:58:55 +02:00
parent 35e9cb1fb9
commit ffbc8e2c6d
2 changed files with 27 additions and 10 deletions

View file

@ -21,7 +21,11 @@
{% else %}
<ul class="list-group">
{% for wish in wishes %}
<li class="list-group-item"> {{ wish.title }}</li>
<li class="list-group-item d-flex justify-content-between align-items-center"> {{ wish.title }}
<span>
<a href="{{ path('delete_wish', {'id': wish.id}) }}"><button class="btn btn-danger">Delete</button></a>
</span>
</li>
{% endfor %}
</ul>
{% endif %}
@ -29,7 +33,7 @@
<hr>
<div mb-3>
<div class="mb-3">
<h3><i class="fas fa-star"></i> New wish</h3>
{{ form(wish_form) }}
</div>