permissiongroup: complete translation, remove itself role in 'which implies'

This commit is contained in:
Mathieu Jaumotte 2023-04-14 17:04:04 +02:00
parent 91d40d9153
commit 499417aea5
2 changed files with 9 additions and 2 deletions

View File

@ -31,10 +31,16 @@
{% for role_scope in role_scopes %} {% for role_scope in role_scopes %}
<tr> <tr>
<td> <td>
{{ role_scope.role|trans }} <span class="role_scope role">{{ role_scope.role|trans|replace({'(⚑)': ''}) }}</span>
{% if expanded_roles[role_scope.role]|length > 1 %} {% if expanded_roles[role_scope.role]|length > 1 %}
<div class="help-text"> <div class="help-text">
{{ 'Which implies'|trans }}&nbsp;: {% for role in expanded_roles[role_scope.role] %}{{ role|trans }}{% if not loop.last %}, {% endif %}{% endfor %} <span style="text-decoration: underline dotted;">{{ 'Which implies'|trans }}&nbsp;:</span>
{% for role in expanded_roles[role_scope.role] %}
{% if role != role_scope.role %}
{{ role|trans|replace({'(⚑)': ''}) }}
{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
</div> </div>
{% endif %} {% endif %}
</td> </td>

View File

@ -425,6 +425,7 @@ No entities: Aucun élément
CHILL_FOO_SEE: Voir un élément CHILL_FOO_SEE: Voir un élément
CHILL_FOO_EDIT: Modifier un élément CHILL_FOO_EDIT: Modifier un élément
chill_export: Exports (statistiques)
#Show templates #Show templates
Date: Date Date: Date