2024-05-23 20:49:34 +02:00
|
|
|
<%- include('partials/header') %>
|
|
|
|
<% birthday = new Date(mitglied.geburtsdatum) %>
|
|
|
|
|
|
|
|
|
|
|
|
<h1> <%= mitglied.name %> </h1>
|
|
|
|
|
2024-05-27 20:37:35 +02:00
|
|
|
<form method="POST" action="/set-Riege">
|
|
|
|
<input type="hidden" name="id" value="<%= id %>">
|
|
|
|
<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>
|
|
|
|
<button type="submit">Speichern</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<strong> Geburtsdatum: </strong> <%= birthday.getDate() %>.<%= birthday.getMonth() + 1 %>.<%= birthday.getFullYear() %> (<%= mitglied.age %>) </br>
|
|
|
|
<strong> Adresse: </strong> <%= mitglied.adresse %> </br>
|
|
|
|
<% numbers.forEach(number => { %>
|
|
|
|
<% if (number.verbindung === 4) { %>
|
|
|
|
<strong> Telefonnummer: </strong> <%= number.nummer %> </br>
|
|
|
|
<% }}) %>
|
|
|
|
|
|
|
|
<h2>Notfallnummern</h2>
|
|
|
|
<p>
|
|
|
|
<% numbers.forEach(number => { %>
|
|
|
|
<% if (number.verbindung != 4) { %>
|
|
|
|
<strong><%= number.bezeichnung %> - <%= number.name %>: </strong> <%= number.nummer %> (stand: <%= number.stand.getDate() %>.<%= number.stand.getMonth() %>.<%= number.stand.getFullYear() %>) </br>
|
|
|
|
<% }}) %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<form method="POST" action="/update-mitglied">
|
|
|
|
<input type="hidden" name="mitgliedId" value="<%= id %>">
|
|
|
|
<select name="verbindung">
|
|
|
|
<option value=1>Mutter</option>
|
|
|
|
<option value=2>Vater</option>
|
|
|
|
<option value=3>Eltern</option>
|
|
|
|
<option value=4>Eigene</option>
|
|
|
|
<option value=5>Oma</option>
|
|
|
|
<option value=6>Opa</option>
|
|
|
|
</select>
|
|
|
|
<input name="name" placeholder="Name" type="text" >
|
|
|
|
<input name="nummer" placeholder="+49 123 456 789" type="text">
|
|
|
|
<button type="submit">Speichern</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
2024-05-23 20:49:34 +02:00
|
|
|
|
|
|
|
<%- include('partials/footer') %>
|