Updated jinja templates and css to better enable product alteration
This commit is contained in:
@ -8,19 +8,26 @@
|
||||
<input type="file" id="image" name="image" accept="image/x" required>
|
||||
</div>
|
||||
|
||||
<textarea id="description" name="description" placeholder="Product Description" required></textarea>
|
||||
|
||||
<select name="category" id="category">
|
||||
{% for category in categories %}
|
||||
<option value="{{category.id}}">{{category.name}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<div class="input-form-row">
|
||||
<textarea id="description" name="description" placeholder="Product Description" required></textarea>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<select name="category" id="category">
|
||||
{% for category in categories %}
|
||||
<option value="{{category.id}}">{{category.name}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-form-row">
|
||||
<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>
|
||||
|
||||
<div class="input-form-row">
|
||||
<input type="submit" id="Create Product" value="Create Product">
|
||||
</div>
|
||||
<input type="submit" id="Create Product" value="Create Product">
|
||||
</form>
|
||||
|
||||
<div id="create-account-wrap">
|
||||
|
Reference in New Issue
Block a user