Add UserGroupRender and Interface for UserGroup templating

A new UserGroupRender class was added to manage the templating logic for UserGroup entities. The UserGroupRenderInterface was also created, extending the ChillEntityRenderInterface. Additionally, a Twig template for rendering user groups was added.
This commit is contained in:
2024-05-31 12:31:44 +02:00
parent e6202a2e34
commit 50025044d3
4 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1 @@
<span class="badge" style="color: {{ user_group.foregroundColor }}; background-color: {{ user_group.backgroundColor }};">{{ user_group.label|localize_translatable_string }}</span>