profile.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <style>
  4. table, th, td {
  5. border: 1px solid black;
  6. }
  7. </style>
  8. <!--Change Password-->
  9. <form method="POST">
  10. <div class="card-body">
  11. <p><b>Change Password</b></p><br>
  12. <hr style="border: 1px solid rgb(177, 176, 176);"/>
  13. <div class="row">
  14. <div class="col-sm-3" style='position:relative; left:20px'>
  15. <h6 class="mb-0"><label for="current_password">Current Password</label></h6><br>
  16. </div>
  17. <div class="col-sm-9 text-secondary">
  18. <input type="password" id="current_password" name="current_password"><br>
  19. </div>
  20. </div>
  21. <div class="row">
  22. <div class="col-sm-3" style='position:relative; left:20px'>
  23. <h6 class="mb-0"><label for="password">Password</label></h6><br>
  24. </div>
  25. <div class="col-sm-9 text-secondary">
  26. <input type="password" id="password" name="password"><br>
  27. </div>
  28. </div>
  29. <div class="row">
  30. <div class="col-sm-3" style='position:relative; left:20px'>
  31. <h6 class="mb-0"><label for="password_confirm">Password<br>(Confirm)</label></h6><br>
  32. </div>
  33. <div class="col-sm-9 text-secondary">
  34. <input type="password" id="password_confirm" name="password_confirm">
  35. </div>
  36. </div>
  37. <div class="row">
  38. <div class="col-sm-12">
  39. <input type="submit" value="Submit" class="btn btn-info"></a>
  40. </div>
  41. </div>
  42. </div>
  43. </form>
  44. <h1>Show 2FA and Email Confirmation. If the user turns on it, it will show a green tick. If not, it will show a red tick.</h1>
  45. <p>At here, you may just use 1 to show green tick, 2 to show red tick. I will styling after building front-end</p>
  46. <p>2FA: 1 </p>
  47. <p>Email Confirmation: 1 </p>
  48. <hr>
  49. <h1>Show user information</h1>
  50. <p>{{user.email}}</p>
  51. <p>{{user.username}}</p>
  52. <hr>
  53. <p>Art I Own</p>
  54. <p>1. Art Name</p>
  55. <p>2. Art Image(Click the photo will go to pop up detail art page)</p>
  56. <hr>
  57. <p>Art by Me</p>
  58. <p>1. Art Name</p>
  59. <p>2. Art Image(Click the photo will go to pop up detail art page)</p>
  60. <a href="{{url_for('dashboards.modal_profile')}}">Popup</a>
  61. {% block modal %}{% endblock %}
  62. {% block script %}{% endblock %}
  63. <hr>
  64. <p>Show the user bidding record</p>
  65. <table>
  66. <tr>
  67. <th>Bidding Art Item Name</th>
  68. <th>Bidding Time(Order by DESC)</th>
  69. <th>Bidding Price</th>
  70. </tr>
  71. <tr>
  72. <td>The Krusty Krab</td>
  73. <td>2022-4-3 15:30:00</td>
  74. <td>150</td>
  75. </tr>
  76. <tr>
  77. <td>Chum Bucket</td>
  78. <td>2022-4-2 10:00:00</td>
  79. <td>100</td>
  80. </tr>
  81. </table>
  82. {% endblock %}