Display roles for user only

This commit is contained in:
Charles 2025-09-05 10:34:09 +02:00
parent 1788ec9062
commit 20bc6e92bc
1 changed files with 12 additions and 0 deletions

View File

@ -35,6 +35,18 @@
<input hidden type="text" value="{{ uoa.application.id }}" name="applicationId">
<button type="submit" class="btn btn-primary">Sauvegarder</button>
</form>
{% else %}
<label for="roles-{{ uoa.application.id }}"><b>Rôles :</b></label>
<select data-user-target="select"
class="choices"
id="roles-{{ uoa.application.id }}"
name="roles[]"
data-controller="user"
data-user-roles-array-value="{{ uoa.rolesArray|json_encode }}"
data-user-selected-role-ids-value="{{ uoa.selectedRoleIds|json_encode }}"
multiple
disabled>
</select>
{% endif %}
</div>
</div>