diff --git a/counter/api.py b/counter/api.py index 43fada5a..dd7b75f0 100644 --- a/counter/api.py +++ b/counter/api.py @@ -109,7 +109,7 @@ class ProductController(ControllerBase): @api_controller("/product-type", permissions=[IsCounterAdmin]) class ProductTypeController(ControllerBase): - @route.get("", response=list[ProductTypeSchema], url_name="fetch-product-types") + @route.get("", response=list[ProductTypeSchema], url_name="fetch_product_types") def fetch_all(self): return ProductType.objects.order_by("order") diff --git a/counter/templates/counter/producttype_list.jinja b/counter/templates/counter/producttype_list.jinja index 5d7ddc26..042925df 100644 --- a/counter/templates/counter/producttype_list.jinja +++ b/counter/templates/counter/producttype_list.jinja @@ -13,8 +13,24 @@ {% endblock %} {% block content %} -

{% trans %}New product type{% endtrans %}

+

+ + {% trans %}New product type{% endtrans %} + + +

{% if producttype_list %} +

\n" @@ -4198,15 +4198,27 @@ msgid "There is no products in this website." msgstr "Il n'y a pas de produits dans ce site web." #: counter/templates/counter/producttype_list.jinja:4 -#: counter/templates/counter/producttype_list.jinja:26 +#: counter/templates/counter/producttype_list.jinja:42 msgid "Product type list" msgstr "Liste des types de produit" -#: counter/templates/counter/producttype_list.jinja:16 +#: counter/templates/counter/producttype_list.jinja:18 msgid "New product type" msgstr "Nouveau type de produit" -#: counter/templates/counter/producttype_list.jinja:42 +#: counter/templates/counter/producttype_list.jinja:25 +msgid "Product types are in the same order on this page and on the eboutic." +msgstr "Les types de produit sont dans le même ordre sur cette page et sur l'eboutic." + +#: counter/templates/counter/producttype_list.jinja:28 +msgid "" +"You can reorder them here by drag-and-drop. The changes will then be applied " +"globally immediately." +msgstr "" +"Vous pouvez les réorganiser ici. Les changements seront alors immédiatement " +"appliqués globalement." + +#: counter/templates/counter/producttype_list.jinja:58 msgid "There is no product types in this website." msgstr "Il n'y a pas de types de produit dans ce site web." diff --git a/locale/fr/LC_MESSAGES/djangojs.po b/locale/fr/LC_MESSAGES/djangojs.po index c89f7eb1..414bb603 100644 --- a/locale/fr/LC_MESSAGES/djangojs.po +++ b/locale/fr/LC_MESSAGES/djangojs.po @@ -123,8 +123,8 @@ msgid "captured.%s" msgstr "capture.%s" #: counter/static/bundled/counter/product-type-index.ts:36 -msgid "Products types successfully reordered" -msgstr "Types de produits réordonnés." +msgid "Products types reordered!" +msgstr "Types de produits réordonnés !" #: counter/static/bundled/counter/product-type-index.ts:40 #, javascript-format