From 5d4bc5719bd1888418c572a58643b2435f56f1b1 Mon Sep 17 00:00:00 2001 From: Montana Date: Wed, 27 Feb 2019 11:18:45 -0500 Subject: [PATCH] Show 'Not Selected' if there is no defense component --- templates/portfolios/admin.html | 8 +++++--- translations.yaml | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/portfolios/admin.html b/templates/portfolios/admin.html index 2e2926a7..67ae683d 100644 --- a/templates/portfolios/admin.html +++ b/templates/portfolios/admin.html @@ -24,14 +24,16 @@ - {% if portfolio.defense_component %}
{{ "forms.task_order.defense_component_label" | translate }}
-
{{ portfolio.defense_component }}
+ {% if portfolio.defense_component %} +
{{ portfolio.defense_component }}
+ {% else %} +
{{ "fragments.portfolio_admin.none" | translate }}
+ {% endif %}
- {% endif %} {% include "fragments/audit_events_log.html" %} diff --git a/translations.yaml b/translations.yaml index 57aec61a..dc4def8f 100644 --- a/translations.yaml +++ b/translations.yaml @@ -6,7 +6,6 @@ # title: A title with a link! # `{{ "login.title" | translate | safe }}` - audit_log: events: default: @@ -298,6 +297,8 @@ fragments: bullet_1: Make sure the information below matches the final task order and is accurate and up-to-date bullet_2: Upload your Task Order (TO) document bullet_3: Add both the Task Order (TO) and Line(s) of Accounting (LOA) numbers + portfolio_admin: + none: Not Selected login: ccpo_logo_alt_text: Cloud Computing Program Office Logo certificate_selection: