Display roles for user only
This commit is contained in:
parent
1788ec9062
commit
20bc6e92bc
|
|
@ -35,6 +35,18 @@
|
||||||
<input hidden type="text" value="{{ uoa.application.id }}" name="applicationId">
|
<input hidden type="text" value="{{ uoa.application.id }}" name="applicationId">
|
||||||
<button type="submit" class="btn btn-primary">Sauvegarder</button>
|
<button type="submit" class="btn btn-primary">Sauvegarder</button>
|
||||||
</form>
|
</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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue