create_art.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <form action="" method="POST" enctype="multipart/form-data">
  4. <!--Input Art Name-->
  5. <div>
  6. <input
  7. type="art_name"
  8. class="form-control"
  9. id="art_name"
  10. name="art_name"
  11. placeholder="Enter art_name"
  12. />
  13. <label for="art_name"></label>
  14. </div>
  15. <!--Input Description-->
  16. <div>
  17. <input
  18. type="description"
  19. class="form-control"
  20. id="description"
  21. name="description"
  22. placeholder="Enter Description "
  23. />
  24. <label for="description"></label>
  25. </div>
  26. <!--Input Starting Price-->
  27. <div>
  28. <input
  29. type="minimum_price"
  30. class="form-control"
  31. id="minimum_price"
  32. name="minimum_price"
  33. placeholder="Enter Minimum Price "
  34. />
  35. <label for="minimum_price"></label>
  36. </div>
  37. <!--Input Buyout Price-->
  38. <div>
  39. <input
  40. type="buyout_price"
  41. class="form-control"
  42. id="buyout_price"
  43. name="buyout_price"
  44. placeholder="Enter Buyout Price "
  45. />
  46. <label for="buyout_price"></label>
  47. </div>
  48. <!--Upload Art or choose what they bought before-->
  49. <input type="file" id="art_img" name="art_img" accept="image/jpg, image/png">
  50. <select name="web_group" style="height:47px" required aria-invalid="false">
  51. <option value="cng-555">Select your own Art in our platform</option>
  52. <option name="web_group" value="bought_art">bought_Art</option>
  53. </select>
  54. <br>
  55. <!--Choose Time for Auction ends (I will check how I can limit the user 14days)-->
  56. <label for="closing_date">Auction end date:</label>
  57. <input id="closing_date" type="date" name="closing_date">
  58. <small>The maximum Auction time is 14 days</small>
  59. <small>The exact time of closing is 0000 hrs of that date</small>
  60. <br>
  61. <p>***Backend also save 1.Creator name, 2.creater the item date and time for showing on detail art page</p>
  62. <p>*** For 1. Creator Name: If the user *Upload* Art = Creator and Owner will store the user nickname.</p>
  63. <p>*** For 1. Creator Name: If the user *Select* Art = Creator will store the user nickname, Owner will grep in the database.</p>
  64. <button type="submit">Create</button>
  65. </form>
  66. {% endblock %}