!20 add username to order and item

This commit is contained in:
lubiana 2024-06-27 23:33:32 +02:00
parent 9d81464fd8
commit 511f12f10f
No known key found for this signature in database
12 changed files with 147 additions and 24 deletions

View file

@ -4,23 +4,29 @@
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" type="image/png" href="/static/img/slice-of-pizza.png" />
<link rel="stylesheet" href="/static/css/simple.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css">
<style>
label{
display: block;
}
</style>
<script src="/static/js/htmx.min.js"></script>
</head>
<body>
<header>
<nav>
<a href="{{ path('app_food_order_index') }}">Orders</a>
<a href="{{ path('app_food_vendor_index') }}">Vendors</a>
<a
href="https://hannover.ccc.de/gitlab/lubiana/futtern/issues/new"
target="_blank"
>Create Issue</a>
</nav>
</header>
<main>
{% block body %}{% endblock %}
</main>
<header>
<p>Hello {{ app.request.cookies.get('username', 'nobody') }} - <a href="{{ path('username') }}">change name</a></p>
<nav>
<a href="{{ path('app_food_order_index') }}">Orders</a> /
<a href="{{ path('app_food_vendor_index') }}">Vendors</a> /
<a
href="https://hannover.ccc.de/gitlab/lubiana/futtern/issues/new"
target="_blank"
>Create Issue</a>
</nav>
</header>
<main>
{% block body %}{% endblock %}
</main>
</body>
</html>