refactor: Remove address, fixed phone, and meal options from the registration form, update a sail type option, and delete the participants list page.
This commit is contained in:
parent
c160446eac
commit
4c435f8e17
3 changed files with 8 additions and 76 deletions
14
app.py
14
app.py
|
|
@ -107,20 +107,20 @@ def event_form(event_slug):
|
||||||
request.form.get('zeilnummer'), # 2: Zeilnummer
|
request.form.get('zeilnummer'), # 2: Zeilnummer
|
||||||
request.form.get('bootnaam'), # 3: Bootnaam
|
request.form.get('bootnaam'), # 3: Bootnaam
|
||||||
request.form.get('boottype'), # 4: Boottype
|
request.form.get('boottype'), # 4: Boottype
|
||||||
", ".join([k for k in ['genua', 'rolfok', 'spinaker', 'halfwinder', 'genaker', 'dacron'] if k in request.form]), # 5: Zeilvoering
|
", ".join([k for k in ['genua', 'rolfok', 'spinaker', 'halfwinder', 'genaker', 'alleendacron'] if k in request.form]), # 5: Zeilvoering
|
||||||
request.form.get('schroef'), # 6: Schroef
|
request.form.get('schroef'), # 6: Schroef
|
||||||
request.form.get('naam'), # 7: Naam (Keep public)
|
request.form.get('naam'), # 7: Naam (Keep public)
|
||||||
request.form.get('straat'), # 8: Straat (PRIVATE)
|
"", # 8: Straat (REMOVED)
|
||||||
request.form.get('postcode'), # 9: Postcode (PRIVATE)
|
"", # 9: Postcode (REMOVED)
|
||||||
request.form.get('plaats'), # 10: Plaats
|
request.form.get('plaats'), # 10: Plaats
|
||||||
request.form.get('land'), # 11: Land
|
request.form.get('land', 'Nederland'), # 11: Land
|
||||||
request.form.get('telefoonmobiel'), # 12: Mobiel (PRIVATE)
|
request.form.get('telefoonmobiel'), # 12: Mobiel (PRIVATE)
|
||||||
request.form.get('telefoonvast'), # 13: Vast (PRIVATE)
|
"", # 13: Vast (REMOVED)
|
||||||
request.form.get('email'), # 14: Email (PRIVATE)
|
request.form.get('email'), # 14: Email (PRIVATE)
|
||||||
request.form.get('startlicentienummer'), # 15: Licentie
|
request.form.get('startlicentienummer'), # 15: Licentie
|
||||||
request.form.get('vereniging'), # 16: Vereniging
|
request.form.get('vereniging'), # 16: Vereniging
|
||||||
request.form.get('buffet', '0'), # 17: Buffet
|
"", # 17: Buffet (REMOVED)
|
||||||
request.form.get('ontbijt', '0'), # 18: Ontbijt
|
"", # 18: Ontbijt (REMOVED)
|
||||||
request.form.get('opmerkingen') # 19: Opmerkingen
|
request.form.get('opmerkingen') # 19: Opmerkingen
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,14 +77,6 @@
|
||||||
<label class="form-label">Naam</label>
|
<label class="form-label">Naam</label>
|
||||||
<input type="text" class="form-control" name="naam" required>
|
<input type="text" class="form-control" name="naam" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
|
||||||
<label class="form-label">Straat + Huisnr</label>
|
|
||||||
<input type="text" class="form-control" name="straat">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<label class="form-label">Postcode</label>
|
|
||||||
<input type="text" class="form-control" name="postcode">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">Plaats</label>
|
<label class="form-label">Plaats</label>
|
||||||
<input type="text" class="form-control" name="plaats">
|
<input type="text" class="form-control" name="plaats">
|
||||||
|
|
@ -94,13 +86,9 @@
|
||||||
<input type="text" class="form-control" name="land" value="Nederland">
|
<input type="text" class="form-control" name="land" value="Nederland">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">Telefoon (Mobiel)</label>
|
<label class="form-label">Telefoonnummer</label>
|
||||||
<input type="text" class="form-control" name="telefoonmobiel" required>
|
<input type="text" class="form-control" name="telefoonmobiel" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
|
||||||
<label class="form-label">Telefoon (Vast)</label>
|
|
||||||
<input type="text" class="form-control" name="telefoonvast">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">Email</label>
|
<label class="form-label">Email</label>
|
||||||
<input type="email" class="form-control" name="email" required>
|
<input type="email" class="form-control" name="email" required>
|
||||||
|
|
@ -115,19 +103,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Eten & Drinken -->
|
|
||||||
<h4 class="section-title mt-4">Eten & Drinken</h4>
|
|
||||||
<div class="row g-3 mb-3">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<label class="form-label">Aantal personen Buffet (Zaterdag)</label>
|
|
||||||
<input type="number" class="form-control" name="buffet" min="0" placeholder="0">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<label class="form-label">Aantal personen Ontbijt (Zondag)</label>
|
|
||||||
<input type="number" class="form-control" name="ontbijt" min="0" placeholder="0">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<label class="form-label">Opmerkingen</label>
|
<label class="form-label">Opmerkingen</label>
|
||||||
<textarea class="form-control" name="opmerkingen" rows="3"></textarea>
|
<textarea class="form-control" name="opmerkingen" rows="3"></textarea>
|
||||||
|
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="nl">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Deelnemerslijst</title>
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<body class="bg-light p-4">
|
|
||||||
<div class="container bg-white p-4 rounded shadow">
|
|
||||||
<h2 class="mb-4 text-primary">Huidige Deelnemers</h2>
|
|
||||||
<a href="/" class="btn btn-outline-secondary mb-4">← Terug naar inschrijving</a>
|
|
||||||
|
|
||||||
<table class="table table-striped table-hover">
|
|
||||||
<thead class="table-dark">
|
|
||||||
<tr>
|
|
||||||
<th>Klasse</th>
|
|
||||||
<th>Zeilnummer</th>
|
|
||||||
<th>Bootnaam</th>
|
|
||||||
<th>Type</th>
|
|
||||||
<th>Schipper</th>
|
|
||||||
<th>Vereniging</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for boat in boats %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ boat.klasse }}</td>
|
|
||||||
<td>{{ boat.zeilnummer }}</td>
|
|
||||||
<td>{{ boat.bootnaam }}</td>
|
|
||||||
<td>{{ boat.boottype }}</td>
|
|
||||||
<td>{{ boat.naam }}</td>
|
|
||||||
<td>{{ boat.vereniging }}</td>
|
|
||||||
</tr>
|
|
||||||
{% else %}
|
|
||||||
<tr>
|
|
||||||
<td colspan="6" class="text-center">Nog geen inschrijvingen.</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue