{% extends 'admin/base.html' %} {% block content %}

Gestion des produits

Ajouter un produit
{% if products %} {% for product in products %} {% endfor %} {% else %} {% endif %}
ID Image Nom Catégorie Prix État Disponibilité Date de création Actions
{{ product.id }} {% if product.image_url %} {% if product.image_url.startswith('uploads/') %} {{ product.name }} {% else %} {{ product.name }} {% endif %} {% else %}
{% endif %}
{{ product.name }} {% if product.category %} {{ product.category.name }} {% else %} Non catégorisé {% endif %} {% if product.price %} {{ product.price }} FCFA {% else %} Non défini {% endif %} {% if product.condition == 'new' %} Neuf {% elif product.condition == 'reconditioned' %} Reconditionné {% elif product.condition == 'used' %} Occasion {% else %} Non défini {% endif %} {% if product.is_available %} Disponible {% else %} Non disponible {% endif %} {{ product.created_at.strftime('%d/%m/%Y') }}
Aucun produit disponible
{% endblock %} {% block extra_js %} {% endblock %}