training/views/admin.ejs

31 lines
987 B
Plaintext

<%- 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>
<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>
<%- include('partials/footer') %>