{% extends 'base.html' %} {% block body %}
{% csrf_token %} {% if azienda %} {% if 'UTENTE' in permesso %} {% endif %} {% if 'DOCUMENTO' in permesso %} {% endif %} {% if 'AZIENDA.DOCUMENTO' in permesso %} {% endif %} {% if 'ATTIVITA' in permesso %} {% if listaAttivitaxAzienda %} {% else %} {% endif %} {% endif %} {% if 'COMUNICAZIONE' in permesso %} {% endif %} {% if 'AZIENDA.EDIT' in permesso %} {% endif %} {% if 'SEDE.EDIT' in permesso %} {% endif %} {% endif %} {% if "AMMINISTRATORE.EDITSELF" in permesso or "AMMINISTRATORE.EDIT" in permesso %} {% endif %} {% if 'LOG.ALL' in permesso %} {% endif %}
{% endblock %} {% block bottom %}

{% if listaAttivitaxAzienda %} Elenco di tutte le attività registrate per l'azienda ... {% else %} Elenco attivita' registrate sul proprio account {% endif %}
{% if listaAttivitaxAzienda %} {% for attivita in listaAttivitaxAzienda %} {% endfor %}
Data Causale Dipendente Amministratore documento
{{ attivita.data | date:'d/m/Y H:i' }} {{ attivita.causale.nome }} {{ attivita.utente.nome }} {{ attivita.amministratore.username }} {{ attivita.documento.documento }}
{% else %} {% for attivita in listaAttivitaxAmministrazione %} {% endfor %}
Data Causale Dipendente Amministratore Documento
{{ attivita.data | date:'d/m/Y H:i' }} {{ attivita.causale.nome }} {{ attivita.utente.nome }} {{ attivita.amministratore.nome }} {{ attivita.documento.documento }}
{% endif %}
{% endblock %}