diff --git a/templates/applications/index.html b/templates/applications/index.html index 028eb6b7..4ab303e4 100644 --- a/templates/applications/index.html +++ b/templates/applications/index.html @@ -8,9 +8,11 @@ {% block portfolio_content %} -{% call StickyCTA(text="Applications") %} +{% call StickyCTA(text="common.applications"|translate) %} {% if can_create_applications and portfolio.applications %} - Create Application + + {{ "portfolios.applications.create_button"|translate }} + {% endif %} {% endcall %} @@ -20,11 +22,11 @@ {% if not portfolio.applications %} {{ EmptyState( - header="You don't have any Applications yet", - message="You can manage multiple Applications within a single Portfolio as long as the funding sources are the same.", - button_text="Create Your First Application", + header="portfolios.applications.empty_state.header"|translate, + message="portfolios.applications.empty_state.message"|translate, + button_text="portfolios.applications.empty_state.button_text"|translate, button_link=url_for("applications.view_new_application_step_1", portfolio_id=portfolio.id), - view_only_text="Contact your portfolio administrator to add an application.", + view_only_text="portfolios.applications.empty_state.view_only_text"|translate, user_can_create=can_create_applications, ) }} diff --git a/templates/portfolios/reports/application_and_env_spending.html b/templates/portfolios/reports/application_and_env_spending.html index 7edfb3f5..0af72112 100644 --- a/templates/portfolios/reports/application_and_env_spending.html +++ b/templates/portfolios/reports/application_and_env_spending.html @@ -17,9 +17,9 @@ {{ EmptyState( header='portfolios.reports.empty_state.message' | translate, message=message, - button_text="Add a new application", + button_text="portfolios.applications.empty_state.button_text"|translate, button_link=url_for("applications.view_new_application_step_1", portfolio_id=portfolio.id), - view_only_text="Contact your portfolio administrator to create an application.", + view_only_text="portfolios.applications.empty_state.view_only_text"|translate, user_can_create=can_create_applications, ) }} diff --git a/templates/task_orders/index.html b/templates/task_orders/index.html index 2bd699cb..b737f3b9 100644 --- a/templates/task_orders/index.html +++ b/templates/task_orders/index.html @@ -93,9 +93,11 @@ {% endmacro %} -{% call StickyCTA(text="Task Orders") %} +{% call StickyCTA(text="common.task_orders"|translate) %} {% if user_can(permissions.CREATE_TASK_ORDER) and task_orders %} - Add New Task Order + + {{ "task_orders.add_new_button" | translate }} + {% endif %} {% endcall %} @@ -107,11 +109,11 @@ {{ TaskOrderList(task_orders) }} {% else %} {{ EmptyState( - header="Add approved task orders", - message="Upload your approved Task Order here. You are required to confirm you have the appropriate signature. You will have the ability to add additional approved Task Orders with more funding to this Portfolio in the future.", + header="task_orders.empty_state.header"|translate, + message="task_orders.empty_state.message"|translate, button_link=url_for('task_orders.form_step_one_add_pdf', portfolio_id=portfolio.id), - button_text="Add Task Order", - view_only_text="Contact your portfolio administrator to add a Task Order.", + button_text="task_orders.empty_state.button_text"|translate, + view_only_text="task_orders.empty_state.view_only_text"|translate, user_can_create=user_can(permissions.CREATE_TASK_ORDER), ) }} {% endif %} diff --git a/translations.yaml b/translations.yaml index 387aecec..d63b1a5e 100644 --- a/translations.yaml +++ b/translations.yaml @@ -44,6 +44,7 @@ ccpo: alert_message: "Confirm removing CCPO superuser access from {user_name}" remove_button: Remove Access common: + applications: Applications cancel: Cancel close: Close confirm: Confirm @@ -65,6 +66,7 @@ common: response_label: Response required save: Save save_changes: Save Changes + task_orders: Task Orders undo: Undo view: View resource_names: @@ -308,6 +310,12 @@ portfolios: add_member: Add Team Member add_another_environment: Add another environment app_settings_text: App settings + create_button: Create Application + empty_state: + header: You don't have any Applications yet + message: You can manage multiple Applications within a single Portfolio as long as the funding sources are the same. + button_text: Create Your First Application + view_only_text: Contact your portfolio administrator to add an application. new: step_1_header: Name and Describe New Application step_1_button_text: "Next: Add Environments" @@ -455,6 +463,7 @@ portfolios: action_label: 'Add a new application' task_orders: + add_new_button: Add New Task Order review: pdf_title: Approved Task Order review_your_funding: Review your funding @@ -507,6 +516,11 @@ task_orders: alert_message: All task orders require a Contracting Officer signature. next_button: 'Confirm & Submit' sticky_header_text: 'Add Task Order (step {step} of 5)' + empty_state: + header: Add approved task orders + message: Upload your approved Task Order here. You are required to confirm you have the appropriate signature. You will have the ability to add additional approved Task Orders with more funding to this Portfolio in the future. + button_text: Add Task Order + view_only_text: Contact your portfolio administrator to add a Task Order. new: form_help_text: Before you can begin work in the cloud, you'll need to complete the information below and upload your approved task order for reference by the CCPO. app_info: