Initial project import: Flask app, templates, init script, README
This commit is contained in:
40
templates/index.html
Normal file
40
templates/index.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Anmeldebogen</title>
|
||||
<style>label{display:block;margin-top:8px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Anmeldebogen</h1>
|
||||
<form method="post">
|
||||
<fieldset>
|
||||
<legend>Persönliche Daten</legend>
|
||||
<label>Vorname <input name="vorname" required value="{{ form.vorname if form and form.vorname }}"></label>
|
||||
<label>Nachname <input name="nachname" required value="{{ form.nachname if form and form.nachname }}"></label>
|
||||
<label>Straße <input name="strasse" required value="{{ form.strasse if form and form.strasse }}"></label>
|
||||
<label>Hausnummer <input name="hausnummer" value="{{ form.hausnummer if form and form.hausnummer }}"></label>
|
||||
<label>PLZ <input name="plz" required maxlength="5" pattern="\d{5}" title="5-stellige PLZ" value="{{ form.plz if form and form.plz }}"> {% if errors and errors.plz %}<strong style="color:red">{{ errors.plz }}</strong>{% endif %}</label>
|
||||
<label>Ort <input name="ort" required value="{{ form.ort if form and form.ort }}"></label>
|
||||
<label>Land <input name="land" value="{{ form.land if form and form.land else 'Deutschland' }}"></label>
|
||||
<label>Telefon Vorwahl <input name="telefon_vorwahl" value="{{ form.telefon_vorwahl if form and form.telefon_vorwahl }}"></label>
|
||||
<label>Telefon Nummer <input name="telefon_nummer" value="{{ form.telefon_nummer if form and form.telefon_nummer }}"></label>
|
||||
<label>E-Mail <input name="email" type="email" value="{{ form.email if form and form.email }}"> {% if errors and errors.email %}<strong style="color:red">{{ errors.email }}</strong>{% endif %}</label>
|
||||
</fieldset>
|
||||
|
||||
{% if fragen %}
|
||||
<fieldset>
|
||||
<legend>Fragen</legend>
|
||||
{% for frage in fragen %}
|
||||
<label>{{ frage.text }}
|
||||
<input name="frage_{{ frage.id }}">
|
||||
</label>
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
|
||||
<p><button type="submit">Absenden</button></p>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user