Add PPoC tag and update styling for PPoC perms
This commit is contained in:
parent
ec3d4f518f
commit
f747edaaf3
@ -272,6 +272,7 @@
|
|||||||
.members-table-ppoc {
|
.members-table-ppoc {
|
||||||
select::-ms-expand {
|
select::-ms-expand {
|
||||||
display: none;
|
display: none;
|
||||||
|
color: $color-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
@ -288,11 +289,12 @@
|
|||||||
word-break: normal;
|
word-break: normal;
|
||||||
padding-right: 3rem;
|
padding-right: 3rem;
|
||||||
padding-left: 1.2rem;
|
padding-left: 1.2rem;
|
||||||
|
color: $color-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
select:hover {
|
select:hover {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
color: $color-base;
|
color: $color-gray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,17 +3,20 @@
|
|||||||
{% for subform in member_perms_form.members_permissions %}
|
{% for subform in member_perms_form.members_permissions %}
|
||||||
{% set modal_id = "portfolio_id_{}_user_id_{}".format(portfolio.id, subform.user_id.data) %}
|
{% set modal_id = "portfolio_id_{}_user_id_{}".format(portfolio.id, subform.user_id.data) %}
|
||||||
{% set ppoc = subform.user_id.data == portfolio.owner.id %}
|
{% set ppoc = subform.user_id.data == portfolio.owner.id %}
|
||||||
|
{% set archive_button_class = 'button-danger-outline' %}
|
||||||
|
|
||||||
<tr {% if ppoc %}class="members-table-ppoc"{% endif %}>
|
<tr {% if ppoc %}class="members-table-ppoc"{% endif %}>
|
||||||
<td class='name'>{{ subform.member.data }}
|
<td class='name'>{{ subform.member.data }}
|
||||||
{% if subform.user_id.data == user.id %}
|
<div>
|
||||||
<span class='you'>(<span class='green'>you</span>)</span>
|
{% if ppoc %}
|
||||||
{% set archive_button_class = 'usa-button-disabled' %}
|
{% set archive_button_class = 'usa-button-disabled' %}
|
||||||
{% elif ppoc %}
|
<span class='you'>PPoC</span>
|
||||||
{% set archive_button_class = 'usa-button-disabled' %}
|
|
||||||
{% else %}
|
|
||||||
{% set archive_button_class = 'button-danger-outline' %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if subform.user_id.data == user.id %}
|
||||||
|
{% set archive_button_class = 'usa-button-disabled' %}
|
||||||
|
<span class='you'>(<span class='green'>you</span>)</span>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>{{ OptionsInput(subform.perms_app_mgmt, label=False, disabled=ppoc) }}</td>
|
<td>{{ OptionsInput(subform.perms_app_mgmt, label=False, disabled=ppoc) }}</td>
|
||||||
|
@ -1,18 +1,24 @@
|
|||||||
{% for subform in member_perms_form.members_permissions %}
|
{% for subform in member_perms_form.members_permissions %}
|
||||||
|
{% set ppoc = subform.user_id.data == portfolio.owner.id %}
|
||||||
|
{% set heading_perms = [subform.perms_app_mgmt, subform.perms_funding, subform.perms_reporting, subform.perms_portfolio_mgmt] %}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='name'>{{ subform.member.data }}
|
<td class='name'>{{ subform.member.data }}
|
||||||
{% if subform.member.data == user.full_name %}
|
<div>
|
||||||
|
{% if ppoc %}
|
||||||
|
<span class='you'>PPoC</span>
|
||||||
|
{% endif %}
|
||||||
|
{% if subform.user_id.data == user.id %}
|
||||||
<span class='you'>(<span class='green'>you</span>)</span>
|
<span class='you'>(<span class='green'>you</span>)</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
{% set heading_perms = [subform.perms_app_mgmt, subform.perms_funding, subform.perms_reporting, subform.perms_portfolio_mgmt] %}
|
|
||||||
|
|
||||||
{% for access in heading_perms %}
|
{% for access in heading_perms %}
|
||||||
{% if dict(access.choices).get(access.data) == 'Edit Access' %}
|
{% if dict(access.choices).get(access.data) == ('portfolios.members.permissions.edit_access' | translate) %}
|
||||||
<td class='green'>Edit Access</td>
|
<td class='green'>{{ 'portfolios.members.permissions.edit_access' | translate }}</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td>View Only</td>
|
<td>{{ 'portfolios.members.permissions.view_only' | translate }}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user