McDoPlus/templates/home/index.html.twig
ExostFlash 755b6c2ccb add
2023-11-27 13:13:11 +01:00

22 lines
570 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Home{% endblock %}
{% block body %}
<div class="center">
<h1>Bienvenue chez McDoPlus !</h1>
{% if not app.user %}
<p>compte utilisateur c'est <code><a href="/user">ici</a></code></p>
{% else %}
<p>Laisser un avis <code><a href="/avis">ici</a></code></p>
<h5>Réserver/Commander :</h5>
<ul>
{% for resto in restos %}
<li><code><a href="{{ path('app_home_choice', {'idresto': resto.id}) }}">{{ resto.address }}</a></code></li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endblock %}