detail_art_for_profile.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {% extends "profile.html" %}
  2. {% block modal %}
  3. <div class="modal fade bd-example-modal-xl" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  4. <div class="modal-dialog modal-xl" role="document">
  5. <div class="modal-content">
  6. <div class="modal-body">
  7. <!-- Product section-->
  8. <section class="py-5">
  9. <div class="container px-4 px-lg-5 my-5">
  10. <div class="row gx-4 gx-lg-5 align-items-center">
  11. <!-- Art Image-->
  12. <div class="col-md-6"><img class="card-img-top mb-5 mb-md-0" src="static/repository/website_photo/navbar_icon.png" alt="..." /></div>
  13. <div class="col-md-6">
  14. <!-- AuctionEnd Time-->
  15. <div class="small mb-1">
  16. (Auction ends in time)
  17. </div>
  18. <!-- Art Name-->
  19. <h1 class="display-5 fw-bolder">(Art Name)</h1>
  20. <!-- Art Description-->
  21. <p class="lead">(Description)</p>
  22. <div class="fs-5 mb-5">
  23. <!-- Price & Name-->
  24. <span class="text-decoration-line-through">Current Bid Price: (Current Bid Price) USD</span><br>
  25. <span class="text-decoration-line-through">Buyout Price: (Buyout Price) USD</span><br>
  26. <span class="text-decoration-line-through">Minimum Price: (Minimum Price) USD</span><br>
  27. <span class="text-decoration-line-through">Who Created: (Creator Name)</span><br>
  28. <span class="text-decoration-line-through">Art Owner: (Owner Name)</span><br>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </section>
  35. <!-- Bid History-->
  36. <div class="row">
  37. <div class="col body-column">
  38. <br>
  39. <h3>Bid History(order by desc)</h3>
  40. </div>
  41. </div>
  42. <!-- Bid Table-->
  43. <table class="table">
  44. <thead class="thead-dark">
  45. <tr>
  46. <th>Bidder Name</th>
  47. <th>Bidding Time</th>
  48. <th>Bidding Price</th>
  49. </tr>
  50. </thead>
  51. <tr>
  52. <td>Patrick Star</td>
  53. <td>2022-4-3 15:30:00</td>
  54. <td>150</td>
  55. </tr>
  56. <tr>
  57. <td>SpongeBob SquarePants</td>
  58. <td>2022-4-2 10:00:00</td>
  59. <td>100</td>
  60. </tr>
  61. </table>
  62. <hr>
  63. <h3>(For the Bid button</h3>
  64. <p>Only show the bid button if the user login. The bidding price needs higher than before.</p>
  65. <p>If the user enters the buyout price, the auction will be ended.</p>
  66. <p>Will not show the bid button for who created the auction.)</p>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- Script for run Modal-->
  72. <script>
  73. $(document).ready(function(){
  74. console.log("Windows is loaded")
  75. $("#exampleModal").modal("show")
  76. })
  77. $(document).ready(function(e) {
  78. $('#exampleModal').on('hidden.bs.modal', function(e) {
  79. window.location.href = '{{url_for('dashboards.profile')}}'
  80. });
  81. });
  82. </script>
  83. {% endblock %}