detail_art_for_market.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {% extends "market.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. <!-- Bid button-->
  31. <div class="d-flex">
  32. <form method="POST">
  33. <input
  34. type="text"
  35. class="form-control text-center me-3 bidding_price_size"
  36. id="bidding_price"
  37. name="bidding_price"
  38. placeholder="Enter Bidding Price"
  39. />
  40. <label for="Bidding Price"></label>
  41. <button class="btn btn-dark flex-shrink-0 input-submit" type="submit">Bid</button>
  42. <p>(At the backend needs to record the bidder nickname and time. And the record will be showing at the bid history table)</p>
  43. </form>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </section>
  50. <!-- Bid History-->
  51. <div class="row">
  52. <div class="col body-column">
  53. <br>
  54. <h3>Bid History(order by desc)</h3>
  55. </div>
  56. </div>
  57. <!-- Bid Table-->
  58. <table class="table">
  59. <thead class="thead-dark">
  60. <tr>
  61. <th>Bidder Name</th>
  62. <th>Bidding Time</th>
  63. <th>Bidding Price</th>
  64. </tr>
  65. </thead>
  66. <tr>
  67. <td>Patrick Star</td>
  68. <td>2022-4-3 15:30:00</td>
  69. <td>150</td>
  70. </tr>
  71. <tr>
  72. <td>SpongeBob SquarePants</td>
  73. <td>2022-4-2 10:00:00</td>
  74. <td>100</td>
  75. </tr>
  76. </table>
  77. <hr>
  78. <h3>(For the Bid button</h3>
  79. <p>Only show the bid button if the user login. The bidding price needs higher than before.</p>
  80. <p>If the user enters the buyout price, the auction will be ended.</p>
  81. <p>Will not show the bid button for who created the auction.)</p>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. <!-- Script for run Modal-->
  87. <script>
  88. $(document).ready(function(){
  89. console.log("Windows is loaded")
  90. $("#exampleModal").modal("show")
  91. })
  92. $(document).ready(function(e) {
  93. $('#exampleModal').on('hidden.bs.modal', function(e) {
  94. window.location.href = '{{url_for('dashboards.market')}}'
  95. });
  96. });
  97. </script>
  98. {% endblock %}