detail_art.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="container">
  4. <!-- Product section-->
  5. <section class="py-5">
  6. <div class="container px-4 px-lg-5 my-5">
  7. <div class="row gx-4 gx-lg-5 align-items-center">
  8. <!-- Art Image-->
  9. <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>
  10. <div class="col-md-6">
  11. <!-- AuctionEnd Time-->
  12. <div class="small mb-1">
  13. (Auction ends in time)
  14. </div>
  15. <!-- Art Name-->
  16. <h1 class="display-5 fw-bolder">(Art Name)</h1>
  17. <!-- Art Description-->
  18. <p class="lead">(Description)</p>
  19. <div class="fs-5 mb-5">
  20. <!-- Price & Name-->
  21. <span class="text-decoration-line-through">Current Bid Price: (Current Bid Price) USD</span><br>
  22. <span class="text-decoration-line-through">Buyout Price: (Buyout Price) USD</span><br>
  23. <span class="text-decoration-line-through">Minimum Price: (Minimum Price) USD</span><br>
  24. <span class="text-decoration-line-through">Who Created: (Creator Name)</span><br>
  25. <span class="text-decoration-line-through">Art Owner: (Owner Name)</span><br>
  26. </div>
  27. <!-- Bid button-->
  28. <div class="d-flex">
  29. <form method="POST">
  30. <input
  31. type="text"
  32. class="form-control text-center me-3 bidding_price_size"
  33. id="bidding_price"
  34. name="bidding_price"
  35. placeholder="Enter Bidding Price"
  36. />
  37. <label for="Bidding Price"></label>
  38. <button class="btn btn-dark flex-shrink-0 input-submit" type="submit">Bid</button>
  39. <p>(At the backend needs to record the bidder nickname and time. And the record will be showing at the bid history table)</p>
  40. </form>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </section>
  47. <!-- Bid History-->
  48. <div class="row">
  49. <div class="col body-column">
  50. <br>
  51. <h3>Bid History(order by desc)</h3>
  52. </div>
  53. </div>
  54. <!-- Bid Table-->
  55. <div class="container">
  56. <table class="table">
  57. <thead class="thead-dark">
  58. <tr>
  59. <th>Bidder Name</th>
  60. <th>Bidding Time</th>
  61. <th>Bidding Price</th>
  62. </tr>
  63. </thead>
  64. <tr>
  65. <td>Patrick Star</td>
  66. <td>2022-4-3 15:30:00</td>
  67. <td>150</td>
  68. </tr>
  69. <tr>
  70. <td>SpongeBob SquarePants</td>
  71. <td>2022-4-2 10:00:00</td>
  72. <td>100</td>
  73. </tr>
  74. </table>
  75. <hr>
  76. <h3>(For the Bid button</h3>
  77. <p>Only show the bid button if the user login. The bidding price needs higher than before.</p>
  78. <p>If the user enters the buyout price, the auction will be ended.</p>
  79. <p>Will not show the bid button for who created the auction.)</p>
  80. </div>
  81. </div>
  82. {% endblock %}