2024-01-24 18:07:41 +00:00
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/loginform.css')}}" />
|
|
|
|
|
|
|
|
<div id="input-form-wrap">
|
|
|
|
<h2>Create New Product</h2>
|
|
|
|
<form class="input-form" method="POST" enctype="multipart/form-data">
|
|
|
|
<div class="input-form-row">
|
|
|
|
<input type="text" id="name" name="name" placeholder="Product Name" required>
|
|
|
|
<input type="file" id="image" name="image" accept="image/x" required>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<textarea id="description" name="description" placeholder="Product Description" required></textarea>
|
|
|
|
|
2024-01-19 12:37:51 +00:00
|
|
|
<select name="category" id="category">
|
|
|
|
{% for category in categories %}
|
2024-01-19 16:35:23 +00:00
|
|
|
<option value="{{category.id}}">{{category.name}}</option>
|
2024-01-19 12:37:51 +00:00
|
|
|
{% endfor %}
|
2024-01-19 13:31:06 +00:00
|
|
|
</select>
|
2024-01-24 18:07:41 +00:00
|
|
|
|
|
|
|
<div class="input-form-row">
|
|
|
|
<input type="number" id="cost" name="cost" placeholder=10.99 min=0 step=any required>
|
|
|
|
<input type="number" id="quantity" name="quantity" placeholder=0 min=0 required>
|
|
|
|
</div>
|
2024-01-19 13:31:06 +00:00
|
|
|
<input type="submit" id="Create Product" value="Create Product">
|
2024-01-19 12:37:51 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<div id="create-account-wrap">
|
2024-01-19 13:31:06 +00:00
|
|
|
<p>Want to view all of your products? <a href="">Click Here</a><p>
|
2024-01-19 12:37:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|