Skip to content
Snippets Groups Projects
Commit c59767a9 authored by rixx's avatar rixx
Browse files

Show current user groups on self service page

Refs #54
parent b2c997ef
Branches
Tags 6.4.8
No related merge requests found
Pipeline #6719 passed
......@@ -40,6 +40,22 @@
<label for="user-password2">Password Repeat</label>
<input type="password" class="form-control" id="user-password2" name="password2" placeholder="●●●●●●●●">
</div>
<div>
{% if user.groups|length %}
{% if user.groups|length == 1 %}
You are currently a member in this group:
{% else %}
You are currently a member in these groups:
{% endif %}
<ul>
{% for group in user.groups|sort(attribute="name") %}
<li>{{ group.name }}</li>
{% endfor %}
</ul>
{% else %}
You are not a member in any groups.
{% endif %}
</div>
<div class="form-group col-md-12">
<button type="submit" class="btn btn-primary float-right"><i class="fa fa-save" aria-hidden="true"></i> Save</button>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment