| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- {% extends 'base.html' %}
- {% block body %}
- <div class='form-outline mb-3 text-center btn-primary h3'>
- {% if not azienda %}
- Attenzione, Selezionare una azienda dal pannello superiore!
- {% else %}
- <form name="azienda" method="POST">
- {% csrf_token %}
- <button type="submit" class='btn btn-primary' name="utenti" value="{{ azienda.id }}">Utenti</button>
- <button type='submit' class="btn btn-primary" name="documenti" value='{{ azienda.id }}'>Documenti</button>
- {% 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 %}
- <button type='submit' class='btn btn-primary' name='comunicazioni' value='{{ azienda.id }}'>Comunicazioni</button>
- <button type='submit' class='btn btn-primary' name='parazienda' value='{{ azienda.id }}'>Par.Azienda</button>
- <button type='submit' class='btn btn-primary' name='parsede' value='{{ sede.id }}'>Par.Sede</button>
- </form>
- {% endif %}
- </div>
- {% endblock %}
- {% block bodybottom %}
- <div><br><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'>Utente</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'>Utente</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 %}
|