detail_art_for_home.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {% extends "home.html" %}
  2. {% block modal %}
  3. <div class="modal" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  4. <div class="modal-dialog" role="document">
  5. <div class="modal-content">
  6. <div class="modal-header">
  7. <h5 class="modal-title" id="exampleModalLabel">Detail Art</h5>
  8. </div>
  9. <div class="modal-body">
  10. <p>Art Name</p>
  11. <p>Art Image</p>
  12. <p>Description</p>
  13. <p>Current Bid Price</p>
  14. <p>Buyout Price</p>
  15. <p>Starting Bid Price</p>
  16. <p>Bid History: Bidder Name and time(order by desc)</p>
  17. <table>
  18. <tr>
  19. <th>Bidder Name</th>
  20. <th>Bidding Time</th>
  21. <th>Bidding Price</th>
  22. </tr>
  23. <tr>
  24. <td>Patrick Star</td>
  25. <td>2022-4-3 15:30:00</td>
  26. <td>150</td>
  27. </tr>
  28. <tr>
  29. <td>SpongeBob SquarePants</td>
  30. <td>2022-4-2 10:00:00</td>
  31. <td>100</td>
  32. </tr>
  33. </table>
  34. <p>Who Created</p>
  35. <p>Auction ends in time</p>
  36. <p>Art Owner</p>
  37. <hr>
  38. <p>Only show the bid button if the user login. The bidding price needs higher than before.</p>
  39. <p>If the user enters the buyout price, the auction will be ended.</p>
  40. <p>Will not show the bid button for who created the auction.</p>
  41. <form method="POST">
  42. <input
  43. type="bidding_price"
  44. class="form-control"
  45. id="bidding_price"
  46. name="bidding_price"
  47. placeholder="Enter Bidding Price"
  48. />
  49. <label for="Bidding Price"></label>
  50. <p>At the backend needs to record the bidder nickname and time. And the record will be showing at the bid history table</p>
  51. <button type="button" class="btn btn-primary">Bid</button>
  52. <a href="{{url_for('dashboards.home')}}">Close</a>
  53. </div>
  54. </div>
  55. <div class="modal-footer">
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <script>
  61. $(document).ready(function(){
  62. console.log("Windows is loaded")
  63. $("#exampleModal").modal("show")
  64. })
  65. </script>
  66. {% endblock %}