show notification badge in menu

This commit is contained in:
2024-04-17 13:51:47 +02:00
parent e2746d5105
commit 7c71ce59bd
17 changed files with 101 additions and 48 deletions

View File

@ -8,16 +8,16 @@
<div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5"
role="alert">
<h2 class="h2">Mail versenden</h2>
<form action="/admin/mail" method="post" enctype="multipart/form-data" class="grid gap-3 p-3">
<form action="/admin/mail"
method="post"
enctype="multipart/form-data"
class="grid gap-3 p-3">
{{ macros::select(label="Gruppe", data=roles, name="role_id") }}
{{ macros::input(label="Betreff", name="subject", type="text", required=true) }}
<div class="">
<label for="content" class=" text-sm text-gray-600 dark:text-white ">
Inhalt
</label>
<label for="content" class=" text-sm text-gray-600 dark:text-white ">Inhalt</label>
<textarea id="content" name="body" rows="4" cols="50" class="input rounded-md"></textarea>
</div>
<input type="file" name="files" multiple />
<input type="submit" class="btn btn-primary" value="Abschicken" />
</form>

View File

@ -6,9 +6,17 @@
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="public/manifest.json" />
<link rel="stylesheet" href="/public/main.css" />
<link rel="apple-touch-icon" sizes="180x180" href="/public/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/public/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/public/images/favicon-16x16.png">
<link rel="apple-touch-icon"
sizes="180x180"
href="/public/images/apple-touch-icon.png">
<link rel="icon"
type="image/png"
sizes="32x32"
href="/public/images/favicon-32x32.png">
<link rel="icon"
type="image/png"
sizes="16x16"
href="/public/images/favicon-16x16.png">
<link rel="manifest" href="/public/images/site.webmanifest">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">

View File

@ -31,6 +31,18 @@
<a href="/">
{{ loggedin_user.name }}
{% if loggedin_user.amount_unread_notifications > 0 %}
<span class="bg-red-100 text-red-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-red-900 dark:text-red-300 inline-flex items-center">
<svg class="w-3 h-3 me-1.5"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 20 20">
<path d="M1.5 8.67v8.58a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V8.67l-8.928 5.493a3 3 0 0 1-3.144 0L1.5 8.67Z" />
<path d="M22.5 6.908V6.75a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3v.158l9.714 5.978a1.5 1.5 0 0 0 1.572 0L22.5 6.908Z" />
</svg>
{{ loggedin_user.amount_unread_notifications }}</span>
{% endif %}
</a>
</div>
<div>