utente.welcome.html.old 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <table class='table table-striped table-hover'>
  4. <thead class='thead-dark'>
  5. <tr>
  6. <th scope='col'>Nome</th>
  7. <th scope='col'>Codice Fiscale</th>
  8. <th scope='col'>Data di Nascita</th>
  9. <th scope='col'>Luogo di Nascita</th>
  10. <th scope='col'>documento</th>
  11. <th scope='col'>Data Documento</th>
  12. <th scope='col'>Azienda</th>
  13. <th scope='col'>Password</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {% csrf_token %}
  18. {% for uu in u %}
  19. <tr>
  20. <td><a href='{% url 'welcome:edit' uu.id %}'>{{ uu.nome }}</a> </td>
  21. <td> {{ uu.codicefiscale }} </td>
  22. <td> {{ uu.datanascita|date:'d/m/Y' }} </td>
  23. <td> {{ uu.luogonascita }} </td>
  24. <td> {{ uu.documento }} </td>
  25. <td> {% if uu.dataupload %} {{ uu.dataupload }} {% endif %}</td>
  26. <td> {{ uu.azienda }} </td>
  27. <td> {{ uu.password }} </td>
  28. </tr>
  29. {% endfor %}
  30. </tbody>
  31. </table>
  32. <div class='form-control'>
  33. <a href='{% url 'welcome:edit' 0 %}'>Nuovo Record</a>
  34. </div>
  35. {% endblock %}
  36. {% block body %}
  37. <div>
  38. &nbsp;
  39. </div>
  40. <br>
  41. <form name='upload' method='post' enctype='multipart/form-data'>
  42. {% csrf_token %}
  43. <table class='table table-striped table-hover'>
  44. <tbody>
  45. <tr>
  46. <td><input type='file' name='indice' id='indice' value='{{ uf.indice }}' accept='text/csv'></td>
  47. <td><input type='file' name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple></td>
  48. <td><input type='submit' value='Inserisci'></td>
  49. </tr>
  50. </tbody>
  51. </table>
  52. </form>
  53. {% endblock %}