move application deletion alert content into translations file

This commit is contained in:
dandds 2019-04-10 16:51:01 -04:00
parent 453d2664af
commit a2e815afd9
2 changed files with 5 additions and 4 deletions

View File

@ -149,11 +149,10 @@ MESSAGES = {
"category": "success", "category": "success",
}, },
"application_deleted": { "application_deleted": {
"title_template": "Success!", "title_template": translate("flash.success"),
"message_template": """ "message_template": """
You have successfully deleted the {{ application_name }} application. {{ "flash.application.deleted" | translate({"application_name": application_name}) }}
To view the retained activity log, visit the portfolio administration <a href="#">Undo</a>.
page. <a href="#">Undo this action</a>.
""", """,
"category": "success", "category": "success",
}, },

View File

@ -28,6 +28,8 @@ flash:
delete_member_success: You have successfully deleted {member_name} from the portfolio. delete_member_success: You have successfully deleted {member_name} from the portfolio.
new_ppoc_title: Primary point of contact updated new_ppoc_title: Primary point of contact updated
new_ppoc_message: You have successfully added {ppoc_name} as the primary point of contact. You are no longer the PPoC. new_ppoc_message: You have successfully added {ppoc_name} as the primary point of contact. You are no longer the PPoC.
application:
deleted: You have successfully deleted the {application_name} application. To view the retained activity log, visit the portfolio administration page.
common: common:
back: Back back: Back
cancel: Cancel cancel: Cancel