Skip to content

Commit

Permalink
Merge pull request #4793 from lorenzulrich/task/user-module-role-label
Browse files Browse the repository at this point in the history
TASK: Use role label in list users/new user view if available
  • Loading branch information
kdambekalns authored Dec 4, 2023
2 parents 60b7280 + 1b457b8 commit 5fd80d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{namespace neos=Neos\Neos\ViewHelpers}
<f:for each="{roles}" as="role" iteration="iteration">
<span class="neos-label" title="{f:render(section: 'tooltip', arguments: {role: role})}" data-neos-toggle="tooltip" data-placement="right" data-html="true">
{role.name}
{f:if(condition: role.label, then: role.label, else: role.name)}
</span>
</f:for>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2>{neos:backend.translate(id: 'user.new.subtitle', value: 'Create a new user',
<div class="neos-controls">
<label for="roles-{rolesIteration.cycle}" class="neos-checkbox" title="{role.packageKey}" data-neos-toggle="tooltip" data-placement="right">
<f:form.checkbox name="roleIdentifiers" multiple="true" value="{role.identifier}" id="roles-{rolesIteration.cycle}" /><span></span>
{role.name}
{f:if(condition: role.label, then: role.label, else: role.name)}
</label>
</div>
</f:for>
Expand Down

0 comments on commit 5fd80d6

Please sign in to comment.