Add status labels to portfolio managers table.

Update PortfolioRole.display_status() to return same type of data as
ApplicationRole.display_status().
This commit is contained in:
leigh-mil
2020-01-06 16:54:24 -05:00
parent a6fcd0c76f
commit da398bf1ff
6 changed files with 25 additions and 26 deletions

View File

@@ -21,6 +21,8 @@
<tr>
<td>
<strong>{{ ppoc.user_name }}{% if ppoc.role_id == current_member_id %} (You){% endif %}</strong>
<br>
{{ Label(type="ppoc", classes='label--below label--purple')}}
</td>
<td>
{% for perm, value in ppoc.permission_sets.items() -%}
@@ -34,6 +36,8 @@
<tr>
<td>
<strong>{{ member.user_name }}{% if member.role_id == current_member_id %} (You){% endif %}</strong>
<br>
{{ Label(type=member.status, classes='label--below')}}
</td>
<td>
{% for perm, value in member.permission_sets.items() -%}