added user informations cell
All checks were successful
Tests / Run Go Tests (push) Successful in 16s
All checks were successful
Tests / Run Go Tests (push) Successful in 16s
This commit is contained in:
@@ -30,6 +30,9 @@ templ LoginPage(success bool, errorMsg string) {
|
||||
}
|
||||
|
||||
templ UserPage(status int) {
|
||||
{{
|
||||
user := ctx.Value("user").(models.User)
|
||||
}}
|
||||
@Base()
|
||||
@headerComponent()
|
||||
<div class="grid-main divide-y-1">
|
||||
@@ -52,6 +55,14 @@ templ UserPage(status int) {
|
||||
<button name="action" value="change-pass" type="submit" class="btn">Ändern</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="grid-sub responsive lg:divide-x-1">
|
||||
<h1 class="grid-cell font-bold uppercase text-xl text-center">Nutzerdaten</h1>
|
||||
<div class="grid-cell col-span-3">
|
||||
<p>Nutzername: <span class="text-neutral-500">{ user.Vorname } { user.Name }</span></p>
|
||||
<p>Personalnummer: <span class="text-neutral-500">{ user.PersonalNummer }</span></p>
|
||||
</div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div class="grid-sub responsive lg:divide-x-1">
|
||||
<h1 class="grid-cell font-bold uppercase text-xl text-center">Nutzer abmelden</h1>
|
||||
<div class="grid-cell col-span-3">
|
||||
|
||||
Reference in New Issue
Block a user