Explorar el Código

rimosso numero documenti sostituito con un N/A quando non presenti

mauro hace 7 meses
padre
commit
4334846bfd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utente/templates/utente.welcome.html

+ 1 - 1
utente/templates/utente.welcome.html

@@ -65,7 +65,7 @@ function toggle(source) {
 	  <td> {{ uu.datanascita|date:'d/m/Y' }} </td>
 	  <td> {{ uu.luogonascita }} </td>
           {% if "DOCUMENTO" in permesso %}
-	    <td> <a href='{% url 'documento:welcome' uu.id %}'>{{ uu.documenti }}</a></td>
+	  <td>{% if uu.documenti %}<a href='{% url 'documento:welcome' uu.id %}'>Download</a>{% else %} N/A {% endif %}</td>
           {% endif %}
           {% if "UTENTE.EDIT" in permesso %}
             <td> {{ uu.mail }} </td>