initial registration draft
parent
4125256601
commit
0566125299
@ -0,0 +1,8 @@
|
||||
from django import forms
|
||||
from .models import Helper
|
||||
|
||||
class RegisterForm(forms.Form):
|
||||
name = forms.CharField(max_length=Helper.name.field.max_length, label="Name")
|
||||
# actually verify phone number, lol
|
||||
phone = forms.CharField(max_length=Helper.phone.field.max_length, label='Handynummer fuer Benarchrichtigungen')
|
||||
okf = forms.BooleanField(label='Ich moechte SMS erhalten')
|
@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Registrierung{% endblock %}
|
||||
{% block content %}
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{{form.as_p}}
|
||||
<p>Wir nutzen deine Handynummer um dir Benachrictigungen zu deinen Schichten zu schicken. Wir loeschen alle Daten 7 Tage nach dem Festival.</p>
|
||||
<input type="submit" value="Anmelden">
|
||||
</form>
|
||||
{% endblock %}
|
@ -0,0 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Registrierung{% endblock %}
|
||||
{% block content %}
|
||||
Hallo {{helper.name}},<br>
|
||||
wir haben dir eine SMS an {{helper.phone}} mit einem Bestaetigunslink geschickt. Sobald du diesen anklickst kann es losgehen!
|
||||
{% endblock %}
|
Loading…
Reference in New Issue