show creation date on Product update page

This commit is contained in:
imperosol
2026-02-10 18:30:05 +01:00
parent 0eccb4a5b5
commit 43768171a1
2 changed files with 15 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
{% block content %}
{% if object %}
<h2>{% trans name=object %}Edit product {{ name }}{% endtrans %}</h2>
<p><i>{% trans %}Creation date{% endtrans %} : {{ object.created_at|date }}</i></p>
<p><i>{% trans %}Last update{% endtrans %} : {{ object.updated_at|date }}</i></p>
{% else %}
<h2>{% trans %}Product creation{% endtrans %}</h2>
{% endif %}

View File

@@ -1566,7 +1566,7 @@ msgstr "Visiteur"
msgid "ban type"
msgstr "type de ban"
#: core/models.py
#: core/models.py counter/models.py
msgid "created at"
msgstr "créé le"
@@ -3109,6 +3109,10 @@ msgstr "groupe d'achat"
msgid "archived"
msgstr "archivé"
#: counter/models.py
msgid "updated at"
msgstr "mis à jour le"
#: counter/models.py
msgid "product"
msgstr "produit"
@@ -3664,6 +3668,14 @@ msgstr ""
msgid "Edit product %(name)s"
msgstr "Édition du produit %(name)s"
#: counter/templates/counter/product_form.jinja
msgid "Creation date"
msgstr "Date de création"
#: counter/templates/counter/product_form.jinja
msgid "Last update"
msgstr "Dernière mise à jour"
#: counter/templates/counter/product_form.jinja
msgid "Product creation"
msgstr "Création de produit"