profile.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. {%for art in my_art%}
  55. <p>{{art.name}}</p>
  56. <img src="static/repository/{{art.dname}}">
  57. <p>2. Art Image(Click the photo will go to pop up detail art page)</p>
  58. {%endfor%}
  59. <hr>
  60. {%for art in my_creation%}
  61. <p>Art by Me</p>
  62. <p>{{art.name}}</p>
  63. <img src="static/repository/{{art.dname}}">
  64. <p>2. Art Image(Click the photo will go to pop up detail art page)</p>
  65. {%endfor%}
  66. <a href="{{url_for('dashboards.modal_profile')}}">Popup</a>
  67. {% block modal %}{% endblock %}
  68. {% block script %}{% endblock %}
  69. <hr>
  70. <p>Show the user bidding record</p>
  71. <table>
  72. <tr>
  73. <th>Bidding Art Item Name</th>
  74. <th>Bidding Time(Order by DESC)</th>
  75. <th>Bidding Price</th>
  76. </tr>
  77. <tr>
  78. <td>The Krusty Krab</td>
  79. <td>2022-4-3 15:30:00</td>
  80. <td>150</td>
  81. </tr>
  82. <tr>
  83. <td>Chum Bucket</td>
  84. <td>2022-4-2 10:00:00</td>
  85. <td>100</td>
  86. </tr>
  87. </table>
  88. {% endblock %}