| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- {% extends 'base.html' %}
- {% block body %}
- <div class='form-outline mb-3 text-center btn-primary h3'>
- <form name="azienda" method="POST">
- {% csrf_token %}
- {% if azienda %}
- {% if 'UTENTE' in permesso %}
- <button type="submit" class='btn btn-primary' name="utenti" value="{{ azienda.id }}">Dipendenti</button>
- {% endif %}
- {% if 'DOCUMENTO' in permesso %}
- <button type='submit' class="btn btn-primary" name="documenti" value='{{ azienda.id }}'>Documenti</button>
- {% endif %}
- {% if 'ATTIVITA' in permesso %}
- {% if listaAttivitaxAzienda %}
- <button type 'submit' class='btn btn-primary' name="xx" value='{{ azienda.id }}'>Attività proprie</button>
- {% else %}
- <button type='submit' class='btn btn-primary' name="attivita" value='{{ azienda.id }}'>Tutte le Attività</button>
- {% endif %}
- {% endif %}
- {% if 'COMUNICAZIONE' in permesso %}
- <button type='submit' class='btn btn-primary' name='comunicazioni' value='{{ azienda.id }}'>Comunicazioni</button>
- {% endif %}
- {% if 'AZIENDA.EDIT' in permesso %}
- <button type='submit' class='btn btn-primary' name='parazienda' value='{{ azienda.id }}'>Par.Azienda</button>
- {% endif %}
- {% if 'SEDE.EDIT' in permesso %}
- <button type='submit' class='btn btn-primary' name='parsede' value='{{ sede.id }}' {% if not sede.id %} disabled {% endif %}>Par.Sede</button>
- {% endif %}
- {% endif %}
- {% if 'LOG.ALL' in permesso %}
- <button type='submit' class='btn btn-primary' name='logall'>Tutti i Log</button>
- {% endif %}
- </form>
- </div>
- {% endblock %}
- {% block bodybottom %}
- <div><br></div>
- <div class='form-outline mb-3 text-center btn-primary h3'>
- {% if listaAttivitaxAzienda %}
- Elenco di tutte le attività registrate per l'azienda ...
- {% else %}
- Elenco attivita' registrate sul proprio account
- {% endif %}
- </div>
- <div>
- {% if listaAttivitaxAzienda %}
- <table class='table table-striped table-hover'>
- <thead class='thead-dark'>
- <tr>
- <th scope='col'>Data</th>
- <th scope='col'>Causale</th>
- <th scope='col'>Dipendente</th>
- <th scope='col'>Amministratore</th>
- <th scope='col'>documento</th>
- </tr>
- </thead>
- <tbody>
- {% for attivita in listaAttivitaxAzienda %}
- <tr>
- <td> {{ attivita.data | date:'d/m/Y H:i' }} </td>
- <td> {{ attivita.causale.nome }} </td>
- <td> {{ attivita.utente.nome }} </td>
- <td> {{ attivita.amministratore.username }}</td>
- <td> {{ attivita.documento.documento }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <table class='table table-striped table-hover'>
- <thead class='thead-dark'>
- <tr>
- <th scope='col'>Data</th>
- <th scope='col'>Causale</th>
- <th scope='col'>Dipendente</th>
- <th scope='col'>Amministratore</th>
- <th scope='col'>Documento</th>
- </tr>
- </thead>
- <tbody>
- {% for attivita in listaAttivitaxAmministrazione %}
- <tr>
- <td>{{ attivita.data | date:'d/m/Y H:i' }} </td>
- <td>{{ attivita.causale.nome }} </td>
- <td>{{ attivita.utente.nome }} </td>
- <td>{{ attivita.amministratore.nome }}</td>
- <td>{{ attivita.documento.documento }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% endif %}
- </div>
- {% endblock %}
|