This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/templates/user/wish.html.twig

45 lines
1.3 KiB
Twig
Raw Normal View History

2021-05-04 11:52:20 +02:00
{% extends 'base.html.twig' %}
{% block title %}Whishlist{% endblock %}
{% block body %}
2021-05-09 10:17:17 +02:00
{% for message in app.flashes('error') %}
<div class="alert alert-error" role="alert">
{{ message }}
</div>
{% endfor %}
2021-05-04 11:52:20 +02:00
{% for message in app.flashes('success') %}
<div class="alert alert-success" role="alert">
{{ message }}
</div>
{% endfor %}
<div class="mb-3">
2021-05-04 12:19:08 +02:00
<h1>Your Wishlist</h1>
2021-05-04 11:52:20 +02:00
</div>
<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 %}
2021-05-05 21:58:55 +02:00
<li class="list-group-item d-flex justify-content-between align-items-center"> {{ wish.title }}
<span>
2022-01-19 22:40:11 +01:00
<a href="{{ path('delete_wish', {'urlId': wish.urlid}) }}" class="btn btn-danger" aria-label="Delete"><i class="fas fa-trash-alt" aria-hidden="true" title="Delete"></i></a>
2021-05-05 21:58:55 +02:00
</span>
</li>
2021-05-04 11:52:20 +02:00
{% endfor %}
</ul>
{% endif %}
</div>
<hr>
2021-05-05 21:58:55 +02:00
<div class="mb-3">
2021-05-04 11:52:20 +02:00
<h3><i class="fas fa-star"></i> New wish</h3>
{{ form(wish_form) }}
</div>
{% endblock %}