#3 Added ability for images to be uploaded to the site
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<div class="product-title">{{product.name}}</div>
|
||||
<div class="product-information">
|
||||
<div class="product-image">
|
||||
<img src="{{url_for('static', filename=product.image)}}" alt="Brake Disks"/>
|
||||
<img src="{{url_for('static', filename='assets/img/products/' + product.image)}}" alt="Brake Disks"/>
|
||||
</div>
|
||||
<div class="product-details">
|
||||
<div class="product-price">£{{product.cost}}</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<input type="file" id="image" name="image" accept="image/x" required>
|
||||
<select name="category" id="category">
|
||||
{% for category in categories %}
|
||||
<option value="{{category.name}}">{{category.name}}</option>
|
||||
<option value="{{category.id}}">{{category.name}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="number" id="cost" name="cost" placeholder=10.99 min=0 step=any required>
|
||||
|
Reference in New Issue
Block a user