2024-02-14 21:59:31 +00:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/forms.css') }}" />
|
2024-01-28 11:59:04 +00:00
|
|
|
|
2024-02-14 21:59:31 +00:00
|
|
|
<div id="form-wrapper">
|
2024-01-28 11:59:04 +00:00
|
|
|
<h2>Create New Product</h2>
|
2024-02-14 14:56:58 +00:00
|
|
|
<form class="input-form" method="POST" action="{{ url_for('main.seller.add') }}" enctype="multipart/form-data">
|
2024-02-14 21:59:31 +00:00
|
|
|
<div class="form-row">
|
2024-01-28 11:59:04 +00:00
|
|
|
<input type="text" id="name" name="name" placeholder="Product Name" required>
|
|
|
|
<input type="file" id="image" name="image" accept="image/x" required>
|
|
|
|
</div>
|
|
|
|
|
2024-02-14 21:59:31 +00:00
|
|
|
<div class="form-row">
|
2024-01-30 19:05:09 +00:00
|
|
|
<textarea id="description" name="description" placeholder="Product Description" required></textarea>
|
|
|
|
</div>
|
2024-01-28 11:59:04 +00:00
|
|
|
|
2024-02-14 21:59:31 +00:00
|
|
|
<div class="form-row">
|
2024-01-30 19:05:09 +00:00
|
|
|
<select name="category" id="category">
|
|
|
|
{% for category in categories %}
|
|
|
|
<option value="{{category.id}}">{{category.name}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2024-02-14 21:59:31 +00:00
|
|
|
<div class="form-row">
|
2024-01-30 19:05:09 +00:00
|
|
|
<input type="number" id="cost" name="cost" placeholder="Cost" min=0 step=0.01 required>
|
|
|
|
<input type="number" id="quantity" name="quantity" placeholder="Quantity Available" min=0 required>
|
|
|
|
</div>
|
2024-01-28 11:59:04 +00:00
|
|
|
|
2024-02-14 21:59:31 +00:00
|
|
|
<div class="form-row">
|
2024-01-30 19:05:09 +00:00
|
|
|
<input type="submit" id="Create Product" value="Create Product">
|
2024-01-28 11:59:04 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2024-02-14 21:59:31 +00:00
|
|
|
<div id="form-footer">
|
2024-02-14 14:56:58 +00:00
|
|
|
<p>Want to view all of your products? <a href="{{ url_for('main.seller.display_own') }}">Click Here</a><p>
|
2024-01-28 11:59:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|