Update banners
- Adds "Create a new environment" title to info banner - Adds a new "environment added" success banner
This commit is contained in:
parent
b2989e99c9
commit
caf3a47c68
@ -159,7 +159,7 @@ def new_environment(application_id):
|
|||||||
if env_form.validate():
|
if env_form.validate():
|
||||||
Environments.create(application=application, name=env_form.name.data)
|
Environments.create(application=application, name=env_form.name.data)
|
||||||
|
|
||||||
flash("application_environments_updated")
|
flash("environment_added", environment_name=env_form.data["name"])
|
||||||
|
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for(
|
url_for(
|
||||||
|
@ -12,6 +12,13 @@ MESSAGES = {
|
|||||||
"message_template": "Application environment members have been updated",
|
"message_template": "Application environment members have been updated",
|
||||||
"category": "success",
|
"category": "success",
|
||||||
},
|
},
|
||||||
|
"environment_added": {
|
||||||
|
"title_template": translate("flash.success"),
|
||||||
|
"message_template": """
|
||||||
|
{{ "flash.environment_added" | translate({ "env_name": environment_name }) }}
|
||||||
|
""",
|
||||||
|
"category": "success",
|
||||||
|
},
|
||||||
"application_environments_updated": {
|
"application_environments_updated": {
|
||||||
"title_template": "Application environments updated",
|
"title_template": "Application environments updated",
|
||||||
"message_template": "Application environments have been updated",
|
"message_template": "Application environments have been updated",
|
||||||
@ -24,7 +31,7 @@ MESSAGES = {
|
|||||||
},
|
},
|
||||||
"invitation_resent": {
|
"invitation_resent": {
|
||||||
"title_template": "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",
|
"category": "success",
|
||||||
},
|
},
|
||||||
"task_order_draft": {
|
"task_order_draft": {
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
.new-env {
|
.new-env {
|
||||||
margin-top: 5rem;
|
margin-top: 5rem;
|
||||||
padding: 0 5rem;;
|
padding: 0 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.accordion-table__items {
|
.accordion-table__items {
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
{% call ToggleSection(section_name="add-new-environment") %}
|
{% call ToggleSection(section_name="add-new-environment") %}
|
||||||
<div class="accordion-table__item-content new-env">
|
<div class="accordion-table__item-content new-env">
|
||||||
<div class="h3">{{ "portfolios.applications.create_new_env" | translate }}</div>
|
{{ Alert(
|
||||||
{{ Alert('',
|
title=("portfolios.applications.create_new_env" | translate),
|
||||||
message=("portfolios.applications.create_new_env_info" | translate )
|
message=("portfolios.applications.create_new_env_info" | translate )
|
||||||
) }}
|
) }}
|
||||||
<div class="h4">{{ "portfolios.applications.enter_env_name" | translate }}</div>
|
<div class="h4">{{ "portfolios.applications.enter_env_name" | translate }}</div>
|
||||||
|
@ -69,6 +69,7 @@ flash:
|
|||||||
congrats: Congrats!
|
congrats: Congrats!
|
||||||
delete_member_success: 'You have successfully deleted {member_name} from the portfolio.'
|
delete_member_success: 'You have successfully deleted {member_name} from the portfolio.'
|
||||||
deleted_member: Portfolio member deleted
|
deleted_member: Portfolio member deleted
|
||||||
|
environment_added: 'The environment "{env_name}" has been added to the application.'
|
||||||
login_required_message: After you log in, you will be redirected to your destination page.
|
login_required_message: After you log in, you will be redirected to your destination page.
|
||||||
login_required_title: Log in required
|
login_required_title: Log in required
|
||||||
new_portfolio: You've created a new JEDI portfolio and jump-started your first task order!
|
new_portfolio: You've created a new JEDI portfolio and jump-started your first task order!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user