From 9d09543eb949abcddf42659fddf1a7f75364cbae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 5 Jan 2025 17:50:15 +0100 Subject: [PATCH] Added a button to quickly go to all label profiles editor Related to issue #806 --- templates/label_system/dialog.html.twig | 10 +++++++++- translations/messages.en.xlf | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/templates/label_system/dialog.html.twig b/templates/label_system/dialog.html.twig index a845d12e..b763a467 100644 --- a/templates/label_system/dialog.html.twig +++ b/templates/label_system/dialog.html.twig @@ -59,7 +59,7 @@
{{ profile.name ?? '-' }} - {% if profile %} + {% if profile and is_granted("edit", profile) %} {% endif %} @@ -91,6 +91,14 @@
+ + {% if is_granted("@labels.read_profiles") %} +
+ +
+ {% endif %} diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 8ca59f11..a3eea465 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -12293,5 +12293,11 @@ Please note, that you can not impersonate a disabled user. If you try you will g Decoded information + + + label_generator.edit_profiles + Edit profiles + +