Add groups to user view

This commit is contained in:
Götz 2019-04-10 20:52:00 +02:00
parent 57b483585d
commit aeb3d40965

View File

@ -13,12 +13,24 @@
<li class="list-group-item">Passwort: {{ user.password }}</li>
<li class="list-group-item">Telefon: {{ user.phone }}</li>
<li class="list-group-item">Mobiltelefon: {{ user.mobile_phone }}</li>
<li class="list-group-item">Gruppen:
{% if groups %}
{% for group in groups %}
{{ group.name }}
{% endfor %}
{% else %}
<span class="text-warning">Keine zugewiesen</span>
{% endif %}
<a href="#" class="float-right">Gruppen zuweisen</a>
</li>
</ul>
<div class="d-flex mt-3">
<a href="{{ url('realm-user-update', args = [realm.id, user.dn]) }}" class="btn btn-primary mr-auto p-2">Update
User</a>
<a href="{{ url('realm-user-delete', args = [realm.id, user.dn]) }}" class="btn btn-danger p-2">Delete
User</a>
<a href="{{ url('realm-user-update', args = [realm.id, user.dn]) }}" class="btn btn-primary mr-auto p-2">
Update User
</a>
<a href="{{ url('realm-user-delete', args = [realm.id, user.dn]) }}" class="btn btn-danger p-2">
Delete User
</a>
</div>
{% else %}
<form method="post">