瀏覽代碼

modifiche al documento.welcome per flag comunicazione

mauro 10 月之前
父節點
當前提交
b90298932f
共有 2 個文件被更改,包括 13 次插入7 次删除
  1. 1 1
      comunicazione/views.py
  2. 12 6
      documento/templates/documento.welcome.html

+ 1 - 1
comunicazione/views.py

@@ -255,7 +255,7 @@ def edit(request):
 
   if request.method == 'POST':
     print('richiesta effettuata')
-    if 'indietro' in request.POST:
+    if 'Ritorna' in request.POST:
       return HttpResponseRedirect(reverse("comunicazione:welcome"))
 
     fd = formComunicazione(request.POST)

+ 12 - 6
documento/templates/documento.welcome.html

@@ -76,14 +76,20 @@
             {% csrf_token %}
 
    	    <div class='form-group form-inline'>
-            <label for='allegati'>Allegati:</label>
-              <input type='file' class="btn btn-primary" name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple>
-              &nbsp;&nbsp;&nbsp;<input type='checkbox' class="form-check-input" name='pertutti' id='pertutti'>
+              <label for='allegati'>Allegati:</label>
+	      <input type='file' class="btn btn-primary" name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple>
+	    </div>
+	    <br>
+	    <div class='form-check'>
+              <input type='checkbox' class="form-check-input" name='pertutti' id='pertutti'>
               <label for='pertutti' class='form-check-label'>Documento in comune (un singolo documento a disposizione di tutti gli utenti)</label>
             </div>
-
-            <div><br></div>
-
+            <br>
+	    <div class='form-check'>
+              <input type='checkbox' class="form-check-input" name='comunicazione' id='comunicazione'>
+              <label for='pertutti' class='form-check-label'>Invia una comunicazione all'utente (Se l'utente ha la mail correttamente registrata)</label>
+            </div>
+            <br>
    	    <div class='form-group form-inline'>
               <label for='descrizione'>Descrizione:&nbsp;</label>
               <input type='text' name='descrizione' id='descrizione' value='' maxlength='120' size='80'>