|
@@ -1,41 +1,6 @@
|
|
|
{% extends "base.html" %}
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
{% block content %}
|
|
|
-
|
|
|
|
|
-<script>
|
|
|
|
|
-$(function(){
|
|
|
|
|
- /* Set the Max date */
|
|
|
|
|
- var dtToday = new Date();
|
|
|
|
|
-
|
|
|
|
|
- var month = dtToday.getMonth() + 1;
|
|
|
|
|
- var day = dtToday.getDate() + 14;
|
|
|
|
|
- var year = dtToday.getFullYear();
|
|
|
|
|
-
|
|
|
|
|
- if(month < 10)
|
|
|
|
|
- month = '0' + month.toString();
|
|
|
|
|
- if(day < 10)
|
|
|
|
|
- day = '0' + day.toString();
|
|
|
|
|
-
|
|
|
|
|
- var maxDate = year + '-' + month + '-' + day;
|
|
|
|
|
- /* Set the Min date */
|
|
|
|
|
- var dtToday_min = new Date();
|
|
|
|
|
-
|
|
|
|
|
- var month_min = dtToday.getMonth() + 1;
|
|
|
|
|
- var day_min = dtToday.getDate()+1;
|
|
|
|
|
- var year_min = dtToday.getFullYear();
|
|
|
|
|
- if(month_min < 10)
|
|
|
|
|
- month_min = '0' + month_min.toString();
|
|
|
|
|
- if(day_min < 10)
|
|
|
|
|
- day_min = '0' + day_min.toString();
|
|
|
|
|
-
|
|
|
|
|
- var minDate = year_min + '-' + month_min + '-' + day_min;
|
|
|
|
|
-
|
|
|
|
|
- /* Run the codes */
|
|
|
|
|
- $('#closing_date').attr('max', maxDate);
|
|
|
|
|
- $('#closing_date').attr('min', minDate);
|
|
|
|
|
-});
|
|
|
|
|
-
|
|
|
|
|
-</script>
|
|
|
|
|
<div class="container-create_art">
|
|
<div class="container-create_art">
|
|
|
<div class="wrap-create_art">
|
|
<div class="wrap-create_art">
|
|
|
<div class="create_art-pic" data-tilt>
|
|
<div class="create_art-pic" data-tilt>
|
|
@@ -48,57 +13,26 @@ $(function(){
|
|
|
</span>
|
|
</span>
|
|
|
<!--Input Art Name-->
|
|
<!--Input Art Name-->
|
|
|
<div class="create_art-input-box">
|
|
<div class="create_art-input-box">
|
|
|
- <!--<input
|
|
|
|
|
- type="art_name"
|
|
|
|
|
- class="form-control create_art-input"
|
|
|
|
|
- id="art_name"
|
|
|
|
|
- name="art_name"
|
|
|
|
|
- placeholder="Enter Art Name"
|
|
|
|
|
- />-->
|
|
|
|
|
- {{ form.art_name(placeholder="Enter Art Name") }}
|
|
|
|
|
|
|
+ {{ form.art_name(placeholder="Enter Art Name", class="form-control create_art-input" ) }}
|
|
|
</div>
|
|
</div>
|
|
|
<!--Input Minimum Price-->
|
|
<!--Input Minimum Price-->
|
|
|
<div class="create_art-input-box">
|
|
<div class="create_art-input-box">
|
|
|
- <!--<input
|
|
|
|
|
- type="number"
|
|
|
|
|
- class="form-control create_art-input"
|
|
|
|
|
- id="minimum_price"
|
|
|
|
|
- name="minimum_price"
|
|
|
|
|
- placeholder="Enter Minimum Price (USD)"
|
|
|
|
|
- />-->
|
|
|
|
|
- {{ form.min_price(placeholder="Enter Minimum Price (USD)") }}
|
|
|
|
|
|
|
+ {{ form.min_price(placeholder="Enter Minimum Price (USD)", class="form-control create_art-input") }}
|
|
|
</div>
|
|
</div>
|
|
|
<!--Input Buyout Price-->
|
|
<!--Input Buyout Price-->
|
|
|
<div class="create_art-input-box">
|
|
<div class="create_art-input-box">
|
|
|
- <!--<input
|
|
|
|
|
- type="number"
|
|
|
|
|
- class="form-control create_art-input"
|
|
|
|
|
- id="buyout_price"
|
|
|
|
|
- name="buyout_price"
|
|
|
|
|
- placeholder="Enter Buyout Price (USD)"
|
|
|
|
|
- />-->
|
|
|
|
|
- {{ form.buyout_price(placeholder="Enter Buyout Price (USD)") }}
|
|
|
|
|
|
|
+ {{ form.buyout_price(placeholder="Enter Buyout Price (USD)", class="form-control create_art-input") }}
|
|
|
</div>
|
|
</div>
|
|
|
<!--Input Description-->
|
|
<!--Input Description-->
|
|
|
<div class="create_art-input-box">
|
|
<div class="create_art-input-box">
|
|
|
- <!--<textarea type="description" class="form-control create_art-input description_size" id="description" name="description" placeholder=" Enter Description"></textarea>-->
|
|
|
|
|
- {{ form.art_desc(placeholder="Enter Description") }}
|
|
|
|
|
|
|
+ {{ form.art_desc(placeholder="Enter Description", class="form-control create_art-input description_size") }}
|
|
|
</div>
|
|
</div>
|
|
|
<!--Upload Art or choose what they bought before-->
|
|
<!--Upload Art or choose what they bought before-->
|
|
|
<hr class="hr_size">
|
|
<hr class="hr_size">
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col input-group-prepend">
|
|
<div class="col input-group-prepend">
|
|
|
<label class="input-group-text">File upload</label>
|
|
<label class="input-group-text">File upload</label>
|
|
|
- <!--<input
|
|
|
|
|
- type="file"
|
|
|
|
|
- id="profile_image"
|
|
|
|
|
- name="profile_image"
|
|
|
|
|
- accept="image/png, image/jpeg"
|
|
|
|
|
- value="Upload"
|
|
|
|
|
- src="http://example.com/path/to/image.png"
|
|
|
|
|
- class="upload_Create_art input-group-text"
|
|
|
|
|
- >-->
|
|
|
|
|
- {{ form.upload() }}
|
|
|
|
|
|
|
+ {{ form.upload(class="upload_Create_art input-group-text", accept="image/png, image/jpeg") }}
|
|
|
</div>
|
|
</div>
|
|
|
<p class="upload_Create_art_position">**<b>PNG's</b>, <b>JPEG's</b> Only**</p>
|
|
<p class="upload_Create_art_position">**<b>PNG's</b>, <b>JPEG's</b> Only**</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -118,8 +52,7 @@ $(function(){
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col input-group-prepend">
|
|
<div class="col input-group-prepend">
|
|
|
<span class="input-group-text Choose-Time-for-Auction-ends">Auction End Date</span>
|
|
<span class="input-group-text Choose-Time-for-Auction-ends">Auction End Date</span>
|
|
|
- <!--<input type="date" id="closing_date" name="closing_date" class="body-column-create_art Closing-date-input-size">-->
|
|
|
|
|
- {{ form.close_date() }}
|
|
|
|
|
|
|
+ {{ form.close_date(class="body-column-create_art Closing-date-input-size") }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- Tips for the date to let user know-->
|
|
<!-- Tips for the date to let user know-->
|
|
@@ -134,10 +67,7 @@ $(function(){
|
|
|
</div>
|
|
</div>
|
|
|
<!-- Button for create Auction-->
|
|
<!-- Button for create Auction-->
|
|
|
<div class="container-create_art-form-btn">
|
|
<div class="container-create_art-form-btn">
|
|
|
- {{ form.submit() }}
|
|
|
|
|
- <!--<button class="create_art-form-btn">
|
|
|
|
|
- <b>Create</b>
|
|
|
|
|
- </button>-->
|
|
|
|
|
|
|
+ {{ form.submit(class="create_art-form-btn") }}
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|