diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2021-06-20 12:29:39 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2021-06-20 12:29:56 +0200 |
commit | 8cb645eb1125db9887360d32d9440a9ca8a1ae4d (patch) | |
tree | 5f2788f6e8cc91ec3ba9add930616132af707499 /accounts | |
parent | add rev to version and create document from non primary group (diff) | |
download | scout-subs-8cb645eb1125db9887360d32d9440a9ca8a1ae4d.tar.gz scout-subs-8cb645eb1125db9887360d32d9440a9ca8a1ae4d.zip |
add avs number to form
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/templates/accounts/index.html | 6 | ||||
-rw-r--r-- | accounts/views.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html index 34b2da1..1473834 100644 --- a/accounts/templates/accounts/index.html +++ b/accounts/templates/accounts/index.html @@ -49,10 +49,14 @@ </select> <label>Branca</label> </div> - <div class="input-field col l8 s12"> + <div class="input-field col l4 s12"> <input value="{{parent_name}}" name="parent_name" id="parent_name" type="text" > <label for="parent_name">Nome dei genitori</label> </div> + <div class="input-field col l4 s12"> + <input value="{{avs_number}}" name="avs_number" id="avs_number" type="text" placeholder="756.1234.5678.90"> + <label for="avs_number">Numero AVS</label> + </div> <div class="input-field col l12 s12"> <input value="{{via}}" name="via" id="via" type="text" > <label for="via">Via e numero</label> diff --git a/accounts/views.py b/accounts/views.py index 06b3306..c42bc52 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -150,6 +150,7 @@ def personal(request): usercode.home_phone = request.POST["home_phone"] usercode.phone = request.POST["phone"] usercode.school = request.POST["school"] + usercode.avs_number = request.POST["avs_number"] if request.POST["year"].isdigit(): usercode.year = request.POST["year"] else: @@ -344,6 +345,7 @@ def personal(request): 'phone': usercode.phone, 'school': usercode.school, 'year': usercode.year, + 'avs_number': usercode.avs_number, 'branca_default': branca_default, 'branca_castorini': branca_castorini, 'branca_lupetti': branca_lupetti, |