diff --git a/uffd/selfservice/templates/self.html b/uffd/selfservice/templates/self.html index 7cb7bf5652eaea2a3904d28fefbd02609498fc99..3942dd809b9aca10e9471e932f5e5ca1386733ff 100644 --- a/uffd/selfservice/templates/self.html +++ b/uffd/selfservice/templates/self.html @@ -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>