Skip to content

Commit

Permalink
Merge pull request #2113 from MIT-LCP/group-membership
Browse files Browse the repository at this point in the history
Added permission groups to user management page in console
  • Loading branch information
tompollard authored Oct 19, 2023
2 parents 6998a3c + a0ff2f5 commit f718cb6
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions physionet-django/console/templates/console/user_management.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,27 @@ <h3>Profile</h3>
</div>
{% endfor %}

{% if groups %}
<div class="row mb-1">
<div class="col-md-3">
User Groups:
</div>
<div class="col-md-9">
{% for group in groups %}
<a href="{% url 'user_group' group.name %}">{{ group.name }}</a>
{% empty %}
N/A
{% endfor %}
</div>
<br />
<h3>Permission groups</h3>
<hr>
<div class="row mb-1">
{% if groups %}
<div class="col-md-6">
The user is a member of the following groups:
</div>

{% endif %}
<div class="col-md-9">
<ul>
{% for group in groups %}
<li><a href="{% url 'user_group' group.name %}">{{ group.name }}</a></li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="col-md-6">
The user does not belong to a permission group.
</div>
{% endif %}
</div>

<br />
<h3>Projects</h3>
Expand Down

0 comments on commit f718cb6

Please sign in to comment.