<div class="tab-pane fade" id="document-pane" role="tabpanel" aria-labelledby="document-tab" tabindex="0">
   <!-- documenti -->  

   <div class='form-outline mb-3 text-center btn-primary h3'>
           Elenco Documenti Associati
   </div>

   <hr>
   {% include 'documento.welcome.lista.html' %}
   </hr>

   {% if "UTENTE.CREA" in permesso_sede or "UTENTE.CREA" in permesso.azienda %}
   <form name='fileManager' method="POST"  enctype='multipart/form-data'>
      {% csrf_token %}

      <table class='table table-striped table-hover'>
          <tbody>
            <tr>
              <td><label for='descrizione'>Descrizione:&nbsp;</label>
                  <input type='text' name='descrizione' id='descrizione' value=''>
                  <input type='file' class="btn btn-primary" name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple></td>
	      <td><input class="btn btn-primary" type='submit' value='Inserisci'></td>
            </tr>
          </table>
      </form>
    {% endif %}

   {% if listaok %}
     <table class='table table-striped table-hover'>
       <thead class='thead-dark'>
       <tr>
         <th scope='col'>Documento caricato con successo</th>
       </tr>
       </thead>
       <tbody>
         {% for l in listaok %}
         <tr>
           <td> {{ l.documento }} </td>
         </tr>
         {% endfor %}
       </tbody>
    </table>
  {% endif %}

  <div><br><br></div>

  {% if listanotok %}
    <table class='table table-striped table-hover'>
      <thead class='thead-dark'>
      <tr>
        <th scope='col'>Documento non caricato perche già presente</th>
      </tr>
      </thead>
      <tbody>
        {% for l in listanotok %}
        <tr>
          <td> {{ l.documento }} </td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
  {% endif %}
  
 </div>

