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

@@ -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 %}