2024-05-23 20:49:34 +02:00
|
|
|
<%- include('partials/header') %>
|
|
|
|
|
|
|
|
<h1>Admin Panel</h1>
|
|
|
|
<ul>
|
|
|
|
<% users.forEach(user => { %>
|
|
|
|
<li>
|
|
|
|
<%= user.username %> - <%= user.email %>
|
|
|
|
<form action="/activate" method="post" style="display: inline;">
|
|
|
|
<input type="hidden" name="userId" value="<%= user.id %>">
|
|
|
|
<button type="submit" class="btn btn-success">Activate</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
|
2024-05-27 20:37:35 +02:00
|
|
|
<form method="POST" action="/new-member">
|
|
|
|
Name: <input type="text" id="name" placeholder="Name" name="name"> </br>
|
|
|
|
Geburtsdatum: <input type="date" id="riege" name="geburt"></br>
|
|
|
|
<select name="riege">
|
|
|
|
<option value=1> Riege 1</option>
|
|
|
|
<option value=2> Riege 2</option>
|
|
|
|
<option value=3> Riege 3</option>
|
|
|
|
<option value=4> Riege 4</option>
|
|
|
|
<option value=5> Riege 5</option>
|
|
|
|
</select></br>
|
|
|
|
Adresse: <input type="text" id="adresse" placeholder="Adresse" name="adresse"></br>
|
|
|
|
<button type="submit">Speichern</button>
|
|
|
|
</form>
|
|
|
|
|
2024-05-23 20:49:34 +02:00
|
|
|
<%- include('partials/footer') %>
|