{% extends "admin/base.html" %} {% block title %}Add Product{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

Add Product

Back to Products
{{ form.hidden_tag() }}
{{ form.name.label(class="form-label fw-bold") }} {{ form.name(class="form-control", placeholder="Enter product name (e.g., Men's Track Suit - Black)") }} {% if form.name.errors %}
{% for error in form.name.errors %} {{ error }} {% endfor %}
{% endif %} Use a descriptive name that includes category, color, and key features.
{{ form.description.label(class="form-label") }} {{ form.description(class="form-control", rows="4") }} {% if form.description.errors %}
{% for error in form.description.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.price.label(class="form-label") }} {{ form.price(class="form-control") }} {% if form.price.errors %}
{% for error in form.price.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.stock_quantity.label(class="form-label") }} {{ form.stock_quantity(class="form-control") }} {% if form.stock_quantity.errors %}
{% for error in form.stock_quantity.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.category_id.label(class="form-label") }} {{ form.category_id(class="form-select") }} {% if form.category_id.errors %}
{% for error in form.category_id.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.subcategory_id.label(class="form-label") }} {{ form.subcategory_id(class="form-select") }} {% if form.subcategory_id.errors %}
{% for error in form.subcategory_id.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.image.label(class="form-label fw-bold") }}
{% if form.image.errors %}
{% for error in form.image.errors %} {{ error }} {% endfor %}
{% endif %} Upload an image and crop it to fit perfectly. Recommended size: 800x800px.
{{ form.is_featured(class="form-check-input") }} {{ form.is_featured.label(class="form-check-label") }}
{{ form.is_clearance(class="form-check-input") }} {{ form.is_clearance.label(class="form-check-label") }}
Color Variants
{% endblock %}