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:
@@ -9,11 +9,15 @@
|
||||
"text": "changes pending",
|
||||
"color": "default",
|
||||
},
|
||||
"ppoc": {"text": "primary point of contact"}
|
||||
} %}
|
||||
|
||||
{% if type -%}
|
||||
{% if type in label_info.keys() -%}
|
||||
<span class='label label--{{ label_info[type]["color"] }} {{ classes }}'>
|
||||
{{ Icon(label_info[type]["icon"]) }} {{ label_info[type]["text"] }}
|
||||
{% if label_info[type]["icon"] %}
|
||||
{{ Icon(label_info[type]["icon"]) }}
|
||||
{% endif %}
|
||||
{{ label_info[type]["text"] }}
|
||||
</span>
|
||||
{%- endif %}
|
||||
{%- endmacro %}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
{% extends "portfolios/base.html" %}
|
||||
|
||||
{% from "components/label.html" import Label %}
|
||||
{% from "components/pagination.html" import Pagination %}
|
||||
{% from 'components/save_button.html' import SaveButton %}
|
||||
{% from 'components/sticky_cta.html' import StickyCTA %}
|
||||
|
@@ -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() -%}
|
||||
|
Reference in New Issue
Block a user