Update banners
- Adds "Create a new environment" title to info banner - Adds a new "environment added" success banner
This commit is contained in:
@@ -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(
|
||||
|
@@ -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": {
|
||||
|
Reference in New Issue
Block a user