dropbox.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. {% include 'hackathon/base.html' %}
  5. <style>
  6. form{
  7. width:80%;
  8. text-align: center;
  9. left:0px;
  10. right:0px;
  11. margin:auto;
  12. margin-top:2%;
  13. }
  14. </style>
  15. <div class="container">
  16. <h1>Dropbox API Usage Example</h1>
  17. <hr>
  18. <h2> Basic User Info</h2>
  19. <table class="table table-bordered table-hover table-striped tablesorter">
  20. <tr>
  21. <th class="header">User ID<i class="icon-sort"></i></th>
  22. <td>
  23. {{userInfo.uid}}
  24. </td>
  25. </tr>
  26. <tr>
  27. <th class="header">Name<i class="icon-sort"></i></th>
  28. <td>
  29. {{userInfo.display_name}}
  30. </td>
  31. </tr>
  32. <tr>
  33. <th class="header">Email<i class="icon-sort"></i></th>
  34. <td>
  35. {{userInfo.email}}
  36. </td>
  37. </tr>
  38. <tr>
  39. <th class="header">Country<i class="icon-sort"></i></th>
  40. <td>
  41. {{userInfo.country}}
  42. </td>
  43. </tr>
  44. </table>
  45. <hr>
  46. <h2>Search Files Example</h2>
  47. <form method="POST" action="/hackathon/dropboxSearchFile/">
  48. {% csrf_token %}
  49. {% load bootstrap %}
  50. <input type="text" name="filename" class="form-control" placeholder="Filename to search" value="" required autofocus>
  51. <br>
  52. <button class="btn btn-lg btn-primary btn-block" type="submit">Search</button>
  53. <input type="hidden" name="submit" value="submit" />
  54. </form>
  55. </div>
  56. </body>
  57. </html>