From a3a62b39fd0c1eb15bf0768ca876ccd2a69662a6 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Thu, 20 Jun 2019 11:00:43 -0400 Subject: [PATCH 1/2] Add check for user perms to show add TO button --- templates/portfolios/task_orders/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/portfolios/task_orders/index.html b/templates/portfolios/task_orders/index.html index c737a9e8..f4d62f27 100644 --- a/templates/portfolios/task_orders/index.html +++ b/templates/portfolios/task_orders/index.html @@ -96,7 +96,9 @@ {% call StickyCTA(text="Funding") %} - Start a new task order + {% if user_can(permissions.CREATE_TASK_ORDER) %} + Start a new task order + {% endif %} {% endcall %} {% include "fragments/flash.html" %} From 7545bb48a9698d469518f8ddf7c40643a4b6a7e6 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Thu, 20 Jun 2019 11:03:33 -0400 Subject: [PATCH 2/2] Make funding icon blue when viewing TO form --- templates/portfolios/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/portfolios/header.html b/templates/portfolios/header.html index 88d12f60..fdd6d20f 100644 --- a/templates/portfolios/header.html +++ b/templates/portfolios/header.html @@ -27,7 +27,7 @@ icon='funding', text='navigation.portfolio_navigation.breadcrumbs.funding' | translate, url=url_for("task_orders.portfolio_funding", portfolio_id=portfolio.id), - active=request.url_rule.endpoint in ["task_orders.portfolio_funding", "task_orders.review_task_order"], + active=request.url_rule.endpoint in ["task_orders.portfolio_funding", "task_orders.review_task_order", "task_orders.edit"], ) }} {{ Link( icon='applications',