diff --git a/templates/portfolios/admin.html b/templates/portfolios/admin.html index 3408c3a2..25c3f445 100644 --- a/templates/portfolios/admin.html +++ b/templates/portfolios/admin.html @@ -14,36 +14,44 @@
-
- {{ form.csrf_token }} -
-
- {{ TextInput(form.name, validation="portfolioName") }} -
+ {% if user_can(permissions.VIEW_PORTFOLIO_NAME) %} + + {{ form.csrf_token }} +
+
+ {{ TextInput(form.name, validation="portfolioName") }} +
-
- -
-
-
-
-
{{ "forms.task_order.defense_component_label" | translate }}
- {% if portfolio.defense_component %} -
{{ portfolio.defense_component }}
- {% else %} -
{{ "fragments.portfolio_admin.none" | translate }}
- {% endif %} +
+
- +
+
+
{{ "forms.task_order.defense_component_label" | translate }}
+ {% if portfolio.defense_component %} +
{{ portfolio.defense_component }}
+ {% else %} +
{{ "fragments.portfolio_admin.none" | translate }}
+ {% endif %} +
+
+ + {% endif %}
- {% include "fragments/primary_point_of_contact.html" %} + {% if user_can(permissions.VIEW_PORTFOLIO_POC) %} + {% include "fragments/primary_point_of_contact.html" %} + {% endif %} - {% include "fragments/admin/portfolio_members.html" %} - {% include "fragments/audit_events_log.html" %} + {% if user_can(permissions.VIEW_PORTFOLIO_USERS) %} + {% include "fragments/admin/portfolio_members.html" %} + {% endif %} - {{ Pagination(audit_events, 'portfolios.portfolio_admin', portfolio_id=portfolio.id) }} + {% if user_can(permissions.VIEW_PORTFOLIO_ACTIVITY_LOG) %} + {% include "fragments/audit_events_log.html" %} + {{ Pagination(audit_events, 'portfolios.portfolio_admin', portfolio_id=portfolio.id) }} + {% endif %}
{% endblock %}