42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Benutzer anlegen</title>
|
|
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
|
</head>
|
|
<body class="bg-light">
|
|
|
|
<div class="container mt-5">
|
|
<%- include("partials/flash") %>
|
|
|
|
<div class="card shadow mx-auto" style="max-width: 450px;">
|
|
<div class="card-body">
|
|
<h3 class="text-center mb-3">Benutzer anlegen</h3>
|
|
|
|
<% if (error) { %>
|
|
<div class="alert alert-danger"><%= error %></div>
|
|
<% } %>
|
|
|
|
<form method="POST" action="/admin/create-user">
|
|
<input class="form-control mb-3" name="username" placeholder="Benutzername" required>
|
|
<input class="form-control mb-3" type="password" name="password" placeholder="Passwort" required>
|
|
|
|
<select class="form-select mb-3" name="role" required>
|
|
<option value="">Rolle wählen</option>
|
|
<option value="mitarbeiter">Mitarbeiter</option>
|
|
<option value="Arzt">Arzt</option>
|
|
</select>
|
|
|
|
<button class="btn btn-primary w-100">Benutzer erstellen</button>
|
|
</form>
|
|
|
|
<div class="text-center mt-3">
|
|
<a href="/dashboard">Zurück</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|