|
|
@@ -281,6 +281,10 @@ def editAMP(request):
|
|
|
print("Un tasto è stato premuto 'AmministratoreButton'")
|
|
|
return HttpResponseRedirect(reverse("amministratore:edit"))
|
|
|
|
|
|
+ if 'AmministratoreReturnButton' in request.POST:
|
|
|
+ print("Un tasto èstato premuto 'AmministratoreReturnButton'")
|
|
|
+ return HttpResponseRedirect(reverse("amministratore:welcome"))
|
|
|
+
|
|
|
formpermessodaaggiungere = FormPermessoDaAggiungere(request.POST,permessi=data['listapermessiassegnabili'])
|
|
|
if formpermessodaaggiungere.is_valid():
|
|
|
print('formpermessodaaggiungere valido')
|
|
|
@@ -488,6 +492,10 @@ def editSEP(request):
|
|
|
print("Un tasto è stato premuto 'AmministratoreButton'")
|
|
|
return HttpResponseRedirect(reverse("amministratore:edit"))
|
|
|
|
|
|
+ if 'AmministratoreEditAZPButton' in request.POST:
|
|
|
+ print("Un tasto èstato premuto 'AmministratoreEditAZPButton'")
|
|
|
+ return HttpResponseRedirect(reverse("amministratore:editAZP"))
|
|
|
+
|
|
|
if 'SedeDaAggiungereButton' in request.POST:
|
|
|
print('un tasto è stato premuto SedeDaAggiungereButton')
|
|
|
formsededaaggiungere = FormSedeDaAggiungere(request.POST,sede=data['listasedediff'])
|