Explorar o código

modulo comunicazione, avanzamento

Mauro hai 1 ano
pai
achega
b37e6c23ce

+ 2 - 2
comunicazione/templates/comunicazione.edit.html

@@ -1,5 +1,5 @@
 <div class='collapse' id='test'>
-Cazzo
+
 </div>
 
 <!-- Modal Abilita Dominio -->
@@ -28,7 +28,7 @@ Cazzo
         </div>
         <div class="modal-footer">
           <button type="submit" class="btn btn-primary" name='conferma'>Conferma</button>
-          <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
+          <button type="reset" class="btn btn-secondary" data-dismiss="modal">Close</button>
         </div>
         </form>
       </div>

+ 5 - 1
comunicazione/views.py

@@ -16,6 +16,8 @@ from django.db.models import Sum
 from django.shortcuts import render
 
 from .models import *
+from .forms import *
+
 from config.views import *
 from azienda.views import *
 from utente.views import *
@@ -138,7 +140,6 @@ def welcome(request):
   punto di ingresso.
   vengono mostrati tutti i modelli presenti presenti
   '''
-
   data = dict()
   data['HeaderTitle'] = getConfig('HeaderTitle')
 
@@ -170,6 +171,9 @@ def welcome(request):
 
   if request.method == "POST":
     print('Richiesta effettuata')
+    fd = formDocumento(request.POST)
+    if fd.is_valid():
+      print('documento valido')
 
   return render(request,'comunicazione.welcome.html',data)
 

+ 2 - 1
gd/settings.py

@@ -44,6 +44,7 @@ INSTALLED_APPS = [
     'utente',
     'azienda',
     'att',
+    'comunicazione',
 ]
 
 MIDDLEWARE = [
@@ -129,7 +130,7 @@ STATIC_URL = 'static/'
 
 DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
 
-FORCE_SCRIPT_NAME = '/gd'
+#FORCE_SCRIPT_NAME = '/gd'
 
 #la sessione comunque scade alla chiusura del browser
 SESSION_EXPIRE_AT_BROWSER_CLOSE=True