2024-04-01 19:26:18 +02:00
|
|
|
{{define "page-content"}}
|
2024-04-02 19:37:53 +02:00
|
|
|
<h2>Erster Benutzer (Administrator)</h2>
|
|
|
|
|
2024-04-01 19:26:18 +02:00
|
|
|
<form>
|
|
|
|
<div class="grid grid-cols-3 gap-4">
|
|
|
|
<div>
|
|
|
|
<label for="username">Benutzername</label>
|
|
|
|
<input class="w-full" required name="username" type="text" value="{{.UserName}}" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="password">Passwort</label>
|
|
|
|
<input class="w-full" required name="password" placeholder="***" type="password" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="password2">Passwort wiederholen</label>
|
|
|
|
<input class="w-full" required name="password2" placeholder="***" type="password" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="first-name">Vorname</label>
|
|
|
|
<input class="w-full" required name="first-name" type="text" value="{{.FirstName}}" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="last-name">Nachname</label>
|
|
|
|
<input class="w-full" required name="last-name" type="text" value="{{.LastName}}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="btn-area">
|
2024-04-03 20:24:54 +02:00
|
|
|
<input class="action-btn" type="submit" value="Anlegen" hx-post="/add-first-user" hx-target="#page-content" />
|
2024-04-01 19:26:18 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var msg = "{{.Msg}}";
|
|
|
|
if (msg != "") {
|
|
|
|
alert(msg);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{{end}}
|