Files
portfolio-tracker/internal/web/templates/auth/auth.templ
T
Matthias Hinrichs 9b7bdcbc53 first commit
2025-07-05 03:10:41 +02:00

35 lines
1.3 KiB
Plaintext

package auth
templ RegisterForm() {
<form method="post" action="/user/register" style="max-width:400px;margin:auto;">
<h2>Registrieren</h2>
<div class="mb-3">
<label for="username" class="form-label">Benutzername</label>
<input type="text" class="form-control" id="username" name="username" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">E-Mail</label>
<input type="email" class="form-control" id="email" name="email" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Passwort</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<button type="submit" class="btn btn-primary w-100">Registrieren</button>
</form>
}
templ LoginForm() {
<form method="post" action="/user/login" style="max-width:400px;margin:auto;">
<h2>Anmelden</h2>
<div class="mb-3">
<label for="username" class="form-label">Benutzername</label>
<input type="text" class="form-control" id="username" name="username" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Passwort</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<button type="submit" class="btn btn-primary w-100">Anmelden</button>
</form>
}