diff --git a/gestion/templates/gestion/kegs_list.html b/gestion/templates/gestion/kegs_list.html index 7a95d72..7654827 100644 --- a/gestion/templates/gestion/kegs_list.html +++ b/gestion/templates/gestion/kegs_list.html @@ -12,9 +12,15 @@

Liste des fûts actifs

+ {% if perms.gestion.add_keg %} Créer un fût + {% endif %} + {% if perms.gestion.open_keg %} Percuter un fût + {% endif %} + {% if perms.gestion.close_keg %} Fermer un fût + {% endif %}

@@ -42,7 +48,7 @@ - + {% endfor %} @@ -53,9 +59,15 @@

Liste des fûts inactifs

+ {% if perms.gestion.add_keg %} Créer un fût + {% endif %} + {% if perms.gestion.open_keg %} Percuter un fût + {% endif %} + {% if perms.gestion.close_keg %} Fermer un fût + {% endif %}

{{ kegH.amountSold }} € {{ kegH.keg.amount }} € VoirFermer Modifier{% if perms.gestion.close_keg %}Fermer {% endif %}{% if perms.gestion.change_keg %}Modifier{% endif %}
@@ -79,7 +91,7 @@ - + {% endfor %} diff --git a/gestion/templates/gestion/manage.html b/gestion/templates/gestion/manage.html index b329d2a..815061d 100644 --- a/gestion/templates/gestion/manage.html +++ b/gestion/templates/gestion/manage.html @@ -5,9 +5,9 @@ {% block navbar %} {% endblock %} @@ -31,6 +31,7 @@ bottom : 1em; } +{% if perms.gestion.add_consumptionhistory %}
@@ -182,7 +183,8 @@
-{% if perms.gestion.cand_add_reload %} +{% endif %} +{% if perms.gestion.add_reload %}

Rechargement client

diff --git a/gestion/templates/gestion/menus_list.html b/gestion/templates/gestion/menus_list.html index 28e2d66..0e319ab 100644 --- a/gestion/templates/gestion/menus_list.html +++ b/gestion/templates/gestion/menus_list.html @@ -31,7 +31,7 @@
- + {% endfor %} diff --git a/gestion/templates/gestion/product_profile.html b/gestion/templates/gestion/product_profile.html index c1edaf6..a6ba127 100644 --- a/gestion/templates/gestion/product_profile.html +++ b/gestion/templates/gestion/product_profile.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block entete %}

Gestion des utilisateurs

{% endblock %} +{% block entete %}

Gestion des produits

{% endblock %} {% block navbar %}
{{ keg.capacity }} L {{ keg.amount }} € Voir{% if keg.stockHold > 0 %}Percuter{% endif %} Modifier{% if perms.gestion.open_keg %}{% if keg.stockHold > 0 %}Percuter {% endif %}{% endif %}{% if perms.gestion.change_keg %}Modifier{% endif %}
{{ menu.barcode }} {% for art in menu.articles.all %}{{art}},{% endfor %} {{ menu.is_active | yesno:"Oui, Non"}}{% if menu.is_active %}Désa{% else %}A{% endif %}ctiver Modifier{% if perms.gestion.change_menu %}{% if menu.is_active %}Désa{% else %}A{% endif %}ctiver Modifier{% endif %}
@@ -39,7 +41,7 @@ - + {% endfor %} diff --git a/preferences/templates/preferences/cotisations_index.html b/preferences/templates/preferences/cotisations_index.html index aa7d130..fdcecf1 100644 --- a/preferences/templates/preferences/cotisations_index.html +++ b/preferences/templates/preferences/cotisations_index.html @@ -10,7 +10,9 @@

Liste des cotisations

+ {% if perms.preferences.add_cotisation %} Créer une cotisation

+ {% endif %}
{{ product.is_active | yesno:"Oui, Non"}} {{ product.deg }} {{ product.volume }} clProfil {% if product.is_active %}Désa{% else %}A{% endif %}ctiver ModifierProfil {% if perms.gestion.change_product %}{% if product.is_active %}Désa{% else %}A{% endif %}ctiver Modifier{% endif %}
@@ -25,7 +27,7 @@ - + {% endfor %} diff --git a/preferences/templates/preferences/payment_methods_index.html b/preferences/templates/preferences/payment_methods_index.html index 8bd9bcc..00f59a3 100644 --- a/preferences/templates/preferences/payment_methods_index.html +++ b/preferences/templates/preferences/payment_methods_index.html @@ -10,7 +10,9 @@

Liste des moyens de paiement

+ {% if perms.preferences.add_paymentmethod %} Créer un moyen de paiement

+ {% endif %}
{{ cotisation.duration }} jours {{ cotisation.amount }} €Modifier Supprimer{% if perms.preferences.change_cotisation %}Modifier {% endif %}{% if perms.preferences.delete_cotisation %}Supprimer{% endif %}
@@ -31,7 +33,7 @@ - + {% endfor %} diff --git a/templates/nav.html b/templates/nav.html index 7244264..ca603be 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -2,27 +2,39 @@ Mon profil +{% if perms.gestion.add_consumptionhistory or perms.gestion.add_refund or perms.gestion.add_reload %} Caisse +{% endif %} +{% if perms.auth.add_user or perms.auth.view_user or perms.auth.add_group or perms.auth.view_group or perms.users.add_school or perms.users.view_school %} Gestion des clients +{% endif %} +{% if perms.gestion.view_product or perms.gestion.add_product or perms.gestion.add_keg or perms.gestion.view_keg or perms.gestion.change_keg or perms.gestion.view_menu or perms.gestion.add_menu %} Gestion des produits +{% endif %} Classement +{% if perms.preferences.change_generalpreferences %} Admin +{% endif %} +{% if perms.preferences.view_cotisation %} Cotisations +{% endif %} +{% if perms.preferences.view_cotisation %} Moyens de paiement +{% endif %} Deconnexion diff --git a/users/templates/users/admins_index.html b/users/templates/users/admins_index.html index 837df97..d2d15d5 100644 --- a/users/templates/users/admins_index.html +++ b/users/templates/users/admins_index.html @@ -25,7 +25,7 @@ - + {% endfor %} diff --git a/users/templates/users/all_consumptions.html b/users/templates/users/all_consumptions.html index 6cae83d..f2aa89a 100644 --- a/users/templates/users/all_consumptions.html +++ b/users/templates/users/all_consumptions.html @@ -33,7 +33,7 @@ - + {%endfor%} diff --git a/users/templates/users/all_menus.html b/users/templates/users/all_menus.html index 9ad411a..d32f1a4 100644 --- a/users/templates/users/all_menus.html +++ b/users/templates/users/all_menus.html @@ -33,7 +33,7 @@ - + {%endfor%} diff --git a/users/templates/users/group_profile.html b/users/templates/users/group_profile.html index 5cb4180..5b09a75 100644 --- a/users/templates/users/group_profile.html +++ b/users/templates/users/group_profile.html @@ -19,12 +19,16 @@
+ {% if perms.auth.change_group %} + {% endif %} + {% if perms.auth.delete_group %} + {% endif %}
diff --git a/users/templates/users/groups_index.html b/users/templates/users/groups_index.html index c9feac0..4acec92 100644 --- a/users/templates/users/groups_index.html +++ b/users/templates/users/groups_index.html @@ -10,7 +10,9 @@

Liste des groupes de droit

+ {% if perms.auth.add_group %} Ajouter un groupe de droit

+ {% endif %}
{{ pm.is_usable_in_cotisation | yesno:"Oui, Non" }} {{ pm.is_usable_in_reload | yesno:"Oui, Non" }} {{ pm.affect_balance | yesno:"Oui, Non" }}Modifier Supprimer{% if perms.preferences.change_paymentmethod %}Modifier {% endif %}{% if perms.preferences.delete_paymentmethod %}Supprimer{% endif %}
{{ user }} {% if user.is_superuser %}(superuser){% endif %} ProfilRetirer des admins{% if not user.is_superuser %}Retirer des admins{% endif %}
{{c.amount}} {{c.paymentMethod}} {{c.date}}Annuler{% if perms.gestion.delete_consumptionhistory %}Annuler{% endif %}
{{m.amount}} {{m.paymentMethod}} {{m.date}}Annuler{% if perms.gestion.delete_menuhistory %}Annuler{% endif %}
@@ -27,7 +29,7 @@ - + {% endfor %} diff --git a/users/templates/users/index.html b/users/templates/users/index.html index 0f8dd85..8ef388d 100644 --- a/users/templates/users/index.html +++ b/users/templates/users/index.html @@ -16,9 +16,13 @@ Actions possibles :
@@ -27,8 +31,10 @@ Actions possibles :
@@ -38,8 +44,10 @@ Les admins ont accès à l'interface admin.
Actions possibles :
@@ -49,8 +57,10 @@ Attention : les superusers bypass toutes les vérifications de permissions.
Actions possibles :
@@ -59,8 +69,12 @@ Actions possibles :
{% endblock %} diff --git a/users/templates/users/profile.html b/users/templates/users/profile.html index 6f6308e..956f460 100644 --- a/users/templates/users/profile.html +++ b/users/templates/users/profile.html @@ -150,7 +150,7 @@ - + {%endfor%} @@ -184,7 +184,7 @@ - + {%endfor%} @@ -249,7 +249,7 @@ - + {% endfor %} diff --git a/users/templates/users/schools_index.html b/users/templates/users/schools_index.html index 93d5e34..62a1f3d 100644 --- a/users/templates/users/schools_index.html +++ b/users/templates/users/schools_index.html @@ -23,7 +23,7 @@ {% for school in schools %} - + {% endfor %}
{{ group.name }} {{ group.permissions.count }} {{ group.user_set.count }}Voir Éditer SupprimerVoir {% if perms.auth.change_group %}Éditer {% endif %}{% if perms.auth.delete_group %}Supprimer{% endif %}
{{c.amount}} {{c.paymentMethod}} {{c.date}}Annuler{% if perms.gestion.delete_consumptionhistory %}Annuler{% endif %}
{{m.amount}} {{m.paymentMethod}} {{m.date}}Annuler{% if perms.gestion.delete_menuhistory %}Annuler{% endif %}
{{cotisation.paymentMethod}} {{cotisation.endDate}} {{cotisation.valid}}Valider Invalider{% if perms.users.validate_cotisationHistory %}Valider Invalider{% endif %}
{{ school }}Modifier Supprimer{% if perms.gestion.change_school %}Modifier {% endif %}{% if perms.gestion.delete_school %}Supprimer{% endif %}