aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/templates/accounts/index.html6
-rw-r--r--accounts/views.py2
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,