diff --git a/gestion/templates/gestion/menus_list.html b/gestion/templates/gestion/menus_list.html index 453240a..d80ef1d 100644 --- a/gestion/templates/gestion/menus_list.html +++ b/gestion/templates/gestion/menus_list.html @@ -28,7 +28,7 @@ {{ menu.name }} {{ menu.amount}} € {% for art in menu.articles.all %}{{art}},{% endfor %} - {{ menu.is_active | yesno:"Oui, Non"}} + {% if perms.gestion.change_menu %}{% if menu.is_active %} Désa{% else %} A{% endif %}ctiver Modifier{% endif %} {% endfor %} diff --git a/gestion/templates/gestion/products_list.html b/gestion/templates/gestion/products_list.html index 2a0aa44..5b1122b 100644 --- a/gestion/templates/gestion/products_list.html +++ b/gestion/templates/gestion/products_list.html @@ -34,7 +34,7 @@ {{ product.amount}} {{ product.stock }} {{ product.category }} - {{ product.is_active | yesno:"Oui, Non"}} + {{ product.deg }} {{ product.volume }} cl Profil {% if perms.gestion.change_product %}{% if product.is_active %} Désa{% else %} A{% endif %}ctiver Modifier{% endif %} diff --git a/preferences/templates/preferences/improvements_index.html b/preferences/templates/preferences/improvements_index.html index 930b158..bf899cd 100644 --- a/preferences/templates/preferences/improvements_index.html +++ b/preferences/templates/preferences/improvements_index.html @@ -27,7 +27,7 @@ {{improvement.title}} {{improvement.get_mode_display}} - {{improvement.seen|yesno:"Oui,Non"}} + {{improvement.date}} Voir Passer en fait Supprimer @@ -56,7 +56,7 @@ {{improvement.title}} {{improvement.get_mode_display}} - {{improvement.seen|yesno:"Oui,Non"}} + {{improvement.date}} Voir Passer en non fait Supprimer diff --git a/preferences/templates/preferences/payment_methods_index.html b/preferences/templates/preferences/payment_methods_index.html index 31e6454..6fdd8ee 100644 --- a/preferences/templates/preferences/payment_methods_index.html +++ b/preferences/templates/preferences/payment_methods_index.html @@ -30,10 +30,10 @@ {% for pm in paymentMethods %} {{ pm.name }} - {{ pm.is_active | yesno:"Oui, Non"}} - {{ pm.is_usable_in_cotisation | yesno:"Oui, Non" }} - {{ pm.is_usable_in_reload | yesno:"Oui, Non" }} - {{ pm.affect_balance | yesno:"Oui, Non" }} + + + + {% if perms.preferences.change_paymentmethod %} Modifier {% endif %}{% if perms.preferences.delete_paymentmethod %} Supprimer{% endif %} diff --git a/preferences/templates/preferences/price_profiles_index.html b/preferences/templates/preferences/price_profiles_index.html index 8cbddae..a01b71b 100644 --- a/preferences/templates/preferences/price_profiles_index.html +++ b/preferences/templates/preferences/price_profiles_index.html @@ -34,7 +34,7 @@ {{ pp.b }} {{ pp.c }} {{ pp.alpha }} - {{ pp.use_for_draft | yesno:"Oui,Non"}} + {% if perms.preferences.change_priceprofile %} Modifier {% endif %}{% if perms.preferences.delete_priceprofile %} Supprimer{% endif %} {% endfor %}