|
|
@@ -52,7 +52,7 @@ def welcome(request):
|
|
|
print("Richiesto Caricamento Documenti")
|
|
|
return HttpResponseRedirect(reverse("documento:welcome"))
|
|
|
|
|
|
- if 'ritorna' in request.POST:
|
|
|
+ if 'indietro' in request.POST:
|
|
|
return HttpResponseRedirect(reverse("azienda:welcome"))
|
|
|
|
|
|
if data['admin'].crea_utente:
|
|
|
@@ -146,7 +146,7 @@ def edit(request):
|
|
|
|
|
|
if request.method == 'POST':
|
|
|
|
|
|
- if "ritorna" in request.POST:
|
|
|
+ if "indietro" in request.POST:
|
|
|
return HttpResponseRedirect(reverse("utente:welcome"))
|
|
|
print('request.method x edit utente')
|
|
|
|
|
|
@@ -275,7 +275,7 @@ def download(request):
|
|
|
|
|
|
if request.method == 'POST':
|
|
|
print('qualcosa è stato richiesto')
|
|
|
- if 'ritorna' in request.POST:
|
|
|
+ if 'indietro' in request.POST:
|
|
|
return HttpResponseRedirect(reverse('login:start'))
|
|
|
|
|
|
pinmail = formPinMail(request.POST)
|
|
|
@@ -529,6 +529,10 @@ def cancellautente(request):
|
|
|
|
|
|
if request.method == 'POST':
|
|
|
cu = formCancellaUtente(request.POST)
|
|
|
+
|
|
|
+ if 'indietro' in request.POST:
|
|
|
+ return HttpResponseRedirect(reverse("utente:welcome"))
|
|
|
+
|
|
|
if cu.is_valid() and cu.cleaned_data.get('ConfermaCancellazioneUtente'):
|
|
|
|
|
|
# tutto ok,
|