diff --git a/atst/routes/applications/settings.py b/atst/routes/applications/settings.py index 44b04d90..430095e0 100644 --- a/atst/routes/applications/settings.py +++ b/atst/routes/applications/settings.py @@ -159,7 +159,7 @@ def new_environment(application_id): if env_form.validate(): Environments.create(application=application, name=env_form.name.data) - flash("application_environments_updated") + flash("environment_added", environment_name=env_form.data["name"]) return redirect( url_for( diff --git a/atst/utils/flash.py b/atst/utils/flash.py index c411e22e..60574430 100644 --- a/atst/utils/flash.py +++ b/atst/utils/flash.py @@ -12,6 +12,13 @@ MESSAGES = { "message_template": "Application environment members have been updated", "category": "success", }, + "environment_added": { + "title_template": translate("flash.success"), + "message_template": """ + {{ "flash.environment_added" | translate({ "env_name": environment_name }) }} + """, + "category": "success", + }, "application_environments_updated": { "title_template": "Application environments updated", "message_template": "Application environments have been updated", @@ -24,7 +31,7 @@ MESSAGES = { }, "invitation_resent": { "title_template": "Invitation resent", - "message_template": "The {{ officer_type }} has been resent instructions to join this portfolio.", + "message_template": "The {{ officer_type }} has been resent instructions to join this portfolio.", "category": "success", }, "task_order_draft": { diff --git a/styles/components/_accordion_table.scss b/styles/components/_accordion_table.scss index 9fcf9938..1bcf3331 100644 --- a/styles/components/_accordion_table.scss +++ b/styles/components/_accordion_table.scss @@ -65,7 +65,7 @@ .new-env { margin-top: 5rem; - padding: 0 5rem;; + padding: 0 5rem; } .accordion-table__items { diff --git a/templates/fragments/applications/add_new_environment.html b/templates/fragments/applications/add_new_environment.html index 2d051edd..c28921b9 100644 --- a/templates/fragments/applications/add_new_environment.html +++ b/templates/fragments/applications/add_new_environment.html @@ -21,8 +21,8 @@ {% call ToggleSection(section_name="add-new-environment") %}