diff options
-rw-r--r-- | accounts/templates/accounts/user_edit.html | 4 | ||||
-rw-r--r-- | accounts/views.py | 3 | ||||
-rw-r--r-- | version.txt | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/accounts/templates/accounts/user_edit.html b/accounts/templates/accounts/user_edit.html index 2c0c8f4..3c4cada 100644 --- a/accounts/templates/accounts/user_edit.html +++ b/accounts/templates/accounts/user_edit.html @@ -37,7 +37,7 @@ <span class="helper-text" data-error="Campo richiesto"></span> </div> <div class="input-field col l4 s12"> - <input name="birth_date" value="{{birth_date}}" class="datepicker" id="birth_date" type="text" {{validation_dic.birth_date|safe}} {{midata_disable}}> + <input name="birth_date" value="{{birth_date}}" id="birth_date" type="text" {{validation_dic.birth_date|safe}} {{midata_disable}}> <label for="birth_date">Data di nascita</label> <span class="helper-text" data-error="Campo richiesto"></span> </div> @@ -216,7 +216,7 @@ <span class="helper-text" data-error="Campo richiesto"></span> </div> <div class="input-field col l4 s12"> - <input value="{{tetanus_date}}" name="tetanus_date" id="tetanus_date" class="datepicker" type="text" {{validation_dic.tetanus_date|safe}}> + <input value="{{tetanus_date}}" name="tetanus_date" id="tetanus_date" type="text" {{validation_dic.tetanus_date|safe}}> <label for="tetanus_date">Ultima vacinazione contro il tetano</label> <span class="helper-text" data-error="Campo richiesto"></span> </div> diff --git a/accounts/views.py b/accounts/views.py index dc53660..f04f495 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -573,7 +573,6 @@ def edit(request, code): if request.POST["tetanus_date"] == "" or request.POST["tetanus_date"].lower() == "01 gennaio 1970" or request.POST["tetanus_date"] == "None" or request.POST["tetanus_date"] == "Giovedì 01 Gennaio 1970 00:00": validation_dic["tetanus_date"] = 'class="datepicker validate invalid" required="" aria-required="true"' missing_fields = True - print("missing!!") else: validation_dic["tetanus_date"] = 'class="datepicker validate" required="" aria-required="true"' print("not missing") @@ -588,8 +587,6 @@ def edit(request, code): if missing_fields: errors.append("Alcuni campi richiesti non sono stati compilati") - print(validation_dic) - # check if user uploaded a file if "vac_certificate" in request.FILES: files = request.FILES.getlist('vac_certificate') diff --git a/version.txt b/version.txt index 9d5757b..9eaf79b 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ version=0.7 -rev=9 +rev=10 |