From 7a4f929b365d3bdbb140d5ebe192b38b57d171d2 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 19 Mar 2020 02:31:53 +0100 Subject: [PATCH] Credit and debit buttons are hidden when there is no right to see special notes --- templates/note/transaction_form.html | 90 +++++++++++++++------------- 1 file changed, 47 insertions(+), 43 deletions(-) diff --git a/templates/note/transaction_form.html b/templates/note/transaction_form.html index f320083e..347db056 100644 --- a/templates/note/transaction_form.html +++ b/templates/note/transaction_form.html @@ -3,7 +3,7 @@ SPDX-License-Identifier: GPL-2.0-or-later {% endcomment %} -{% load i18n static django_tables2 %} +{% load i18n static django_tables2 perms %} {% block content %} @@ -18,14 +18,16 @@ SPDX-License-Identifier: GPL-2.0-or-later {% trans "Transfer" %} - - + {% if "note.notespecial"|not_empty_model_list %} + + + {% endif %} @@ -58,47 +60,49 @@ SPDX-License-Identifier: GPL-2.0-or-later -