Feat: update form, allow some fields to be optional; add dauerapp check; get mail setup working using env variables
Some checks failed
Docker Build (PR) / Build Docker image (pull_request) Has been cancelled

This commit is contained in:
2025-10-10 09:53:49 +02:00
parent ea9c13ae91
commit 5e37b57c9b
6 changed files with 73 additions and 20 deletions

View File

@@ -38,8 +38,8 @@
<input type="text" name="lastname" id="lastname" required>
</div>
<div class="form-field">
<label for="title">Titel</label>
<input type="text" name="title" id="title" required>
<label for="title">Titel (optional)</label>
<input type="text" name="title" id="title">
</div>
<div class="form-field">
<label for="telno">Telefonnummer</label>
@@ -89,23 +89,26 @@
<div class="form-field">
<label>Semester</label>
<div class="inline-controls">
<label class="radio"><input type="radio" name="semester_type" value="summer" required>Sommer</label>
<label class="radio"><input type="radio" name="semester_type" value="winter" required>Winter</label>
<label class="radio"><input type="radio" name="semester_type" value="SoSe" required>Sommer</label>
<label class="radio"><input type="radio" name="semester_type" value="WiSe" required>Winter</label>
<input type="number" name="semester_year" placeholder="Jahr" required>
</div>
<div class="inline-controls start" style="margin-top: 0.5rem;">
<label class="checkbox"><input type="checkbox" name="dauerapparat" value="true"> Dauerapparat</label>
</div>
</div>
</div>
<h2>Medien</h2>
<table id="book-table" class="data-table">
<tr>
<th>Autorenname</th><th>Jahr/Auflage</th><th>Titel</th><th>Signatur</th>
<th>Autorenname</th><th>Jahr/Auflage</th><th>Titel</th><th>Signatur (wenn vorhanden)</th>
</tr>
<tr>
<td><input type="text" name="authorname" required></td>
<td><input type="text" name="year" required></td>
<td><input type="text" name="booktitle" required></td>
<td><input type="text" name="signature" required></td>
<td><input type="text" name="signature"></td>
</tr>
</table>
<button type="button" class="btn btn-secondary" onclick="addRow()">+ Medium hinzufügen</button>
@@ -136,7 +139,7 @@
<td><input type="text" name="authorname" required></td>
<td><input type="text" name="year" required></td>
<td><input type="text" name="booktitle" required></td>
<td><input type="text" name="signature" required></td>
<td><input type="text" name="signature"></td>
`;
}