#3 Added basic create product page
This commit is contained in:
@ -39,4 +39,4 @@
|
||||
</label>
|
||||
{% endfor%}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
|
18
templates/new_product.html
Normal file
18
templates/new_product.html
Normal file
@ -0,0 +1,18 @@
|
||||
<div id="login-form-wrap">
|
||||
<h2>Sign Up</h2>
|
||||
<form class="login-form" method="POST">
|
||||
<input type="text" id="name" name="name" placeholder="Product Name" required>
|
||||
<input type="textarea" id="description" name="description" placeholder="Product Description" required>
|
||||
<input type="file" id="image" name="image" required>
|
||||
<select name="category" id="category">
|
||||
{% for category in categories %}
|
||||
<option value="{{category.name}}">{{category.name}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit" id="Sign Up" value="Sign Up">
|
||||
</form>
|
||||
|
||||
<div id="create-account-wrap">
|
||||
<p>Already have an account? <a href="login">Login</a><p>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user