Advertisement
jcramalho

Template para o Gestor de Ficheiros

Nov 19th, 2019
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. extends layout
  2.  
  3. block content
  4. .w3-card-4
  5. header.w3-container.w3-blue
  6. h2 Novo ficheiro
  7.  
  8. form.w3-container(action="/api/ficheiros" method="post" enctype="multipart/form-data")
  9. .w3-container(id='lista')
  10. .w3-container(id='f1')
  11. .w3-cell-row
  12. label.w3-cell Descrição:
  13. input.w3-input.w3-cell.w3-border(type="text" name="desc")
  14. .w3-cell-row
  15. label.w3-cell Ficheiro:
  16. input.w3-input.w3-cell(type="file" name="ficheiro")
  17. button.w3-button.w3-round-large.w3-indigo(id='mais1') +1
  18. input.w3-input(type="submit" value="Enviar")
  19.  
  20. .w3-card-4.modal(id='display')
  21.  
  22. .w3-card-4
  23. header.w3-container.w3-blue
  24. h1 Lista de ficheiros armazenados
  25.  
  26. .w3-container
  27. if (lista.length > 0)
  28. table.w3-table-all
  29. tr
  30. th Data
  31. th Descrição
  32. th Tipo
  33. th Path
  34. th Tamanho
  35. each f in lista
  36. tr(id = 'f_' + f._id, class = 'ficheiro', onclick="show_me(this,"+ JSON.stringify(f) + ")")
  37. td= f.data
  38. td= f.desc
  39. td= f.mimetype
  40. td= f.name
  41. td= f.size
  42. else
  43. p Não tem nenhum ficheiro armazenado
  44.  
  45. footer.w3-container.w3-blue
  46. address Generated by fileApp, 2019-11 by jcr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement