{% extends "client/layout_client.html" %} {% block stylesheets%} {{ super() }} {% endblock %} {% block body %}

{{ article.nom }}  {{ article.prix }} €

{% if article.image is not none %} image  de {{ article.nom }} {% else %} image  de {{ article.nom }} {% endif %} {% if commandes_articles.nb_commandes_article is defined and commandes_articles.nb_commandes_article > 0 %}
Vous avez commandé {{ commandes_articles.nb_commandes_article }} fois ce produit {% endif %}

{% if article.moyenne_notes is not defined or article.nb_notes is not defined or article.moyenne_notes == None %} Pas de Note {% else %} Note moyenne de cet article : {{ article.moyenne_notes }} ({{ article.nb_notes }} note(s)) {% endif %}
{% if commandes_articles.nb_commandes_article is defined and commandes_articles.nb_commandes_article > 0 %}
{% if note is defined and note is number %}
{% else %}
{% endif %}
{% else %} (seul les clients qui ont acheté cet article peuvent le noter) {% endif %}


{% if nb_commentaires.nb_commentaires_total is not defined or nb_commentaires.nb_commentaires_utilisateur is not defined %} NB comment not defined {% else %} Nombre de commentaire(s) : {{ nb_commentaires.nb_commentaires_utilisateur }} / 5
Nombre de commentaire(s) total : {{nb_commentaires.nb_commentaires_total }} {% endif %}
{% if commandes_articles.nb_commandes_article is defined and commandes_articles.nb_commandes_article > 0 and ((nb_commentaires.nb_commentaires_utilisateur is defined and nb_commentaires.nb_commentaires_utilisateur <5) or nb_commentaires.nb_commentaires_utilisateur is not defined) %}
{% else %} (seul les clients qui ont acheté cet article peuvent le commenter ou nombre maxi de commentaires sur cet article (5) atteind) {% endif %}

Les commentaires

{% if commentaires %} {% for commentaire in commentaires %} {# #} {% endfor %} {% else %} {% endif %}
nom(pseudo) Commentaires
{{ commentaire.nom }}({{ commentaire.id_utilisateur }}) {% if commentaire.utilisateur_id == 1 %} (réponse de l'administrateur du site (webmaster) ) : {% endif %} {{ commentaire.commentaire }}{{ commentaire.note }}#} {# {{ commentaire.__dict__ }}#} {# {% if commentaire.id_utilisateur == session['id_user'] %}
{% endif %}
Pas de commentaire
Retour vers la page d'accueil
{% endblock %}