-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.html.twig
54 lines (52 loc) · 1.32 KB
/
base.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>
{% block title %}Welcome!
{% endblock %}
</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>"> {% block stylesheets %}{% endblock %}
{% block javascripts %}
{% block importmap %}
{{ importmap('app') }}
{% endblock %}
{% endblock %}
</head>
<body>
<header>
<h1>BACK UP</h1>
</header>
<main>
<nav>
<button>
<a href={{path("home")}}>Home</a>
</button>
<button>
<a href={{path("app_products")}}>Produits</a>
</button>
<button>
<a href={{path("app_category")}}>Catégories</a>
</button>
{% if app.user %}
<div class="mb-3">
You are logged in as
{{ app.user.userIdentifier }},
<a href="{{ path('app_logout') }}">Logout</a>
</div>
{% endif %}
</nav>
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="flash-{{ label }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% block content %}{% endblock %}
</main>
<footer>
Un site développé dans le CEFii par Romain R.
</footer>
</body>
</html>