Display portfolio managers alphabetically instead of always having PPoC in the first table row

This commit is contained in:
leigh-mil
2020-01-09 11:23:47 -05:00
parent 959636fc91
commit 70462eee0c
2 changed files with 6 additions and 19 deletions

View File

@@ -18,25 +18,14 @@
</tr>
</thead>
<tbody>
<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() -%}
<div>
{{ ("portfolios.admin.members.{}.{}".format(perm, value)) | translate }}
</div>
{%-endfor %}
</td>
</tr>
{% for member in members -%}
<tr>
<td>
<strong>{{ member.user_name }}{% if member.role_id == current_member_id %} (You){% endif %}</strong>
<br>
{% if member.ppoc %}
{{ Label(type="ppoc", classes='label--below label--purple')}}
{% endif %}
{{ Label(type=member.status, classes='label--below')}}
</td>
<td>