Merge pull request #908 from dod-ccpo/clean-up-flash-messages
Delete unused flash messages
This commit is contained in:
commit
1821e164b0
@ -30,11 +30,6 @@ MESSAGES = {
|
|||||||
"message_template": "You have successfully deleted {{ user_name }} from {{ application_name }}",
|
"message_template": "You have successfully deleted {{ user_name }} from {{ application_name }}",
|
||||||
"category": "success",
|
"category": "success",
|
||||||
},
|
},
|
||||||
"environment_access_changed": {
|
|
||||||
"title_template": "User access successfully changed.",
|
|
||||||
"message_template": "",
|
|
||||||
"category": "success",
|
|
||||||
},
|
|
||||||
"environment_added": {
|
"environment_added": {
|
||||||
"title_template": translate("flash.success"),
|
"title_template": translate("flash.success"),
|
||||||
"message_template": """
|
"message_template": """
|
||||||
@ -52,11 +47,6 @@ MESSAGES = {
|
|||||||
"message_template": "<p>Please see below.</p>",
|
"message_template": "<p>Please see below.</p>",
|
||||||
"category": "error",
|
"category": "error",
|
||||||
},
|
},
|
||||||
"invitation_resent": {
|
|
||||||
"title_template": "Invitation resent",
|
|
||||||
"message_template": "The {{ officer_type }} has been resent instructions to join this portfolio.",
|
|
||||||
"category": "success",
|
|
||||||
},
|
|
||||||
"logged_out": {
|
"logged_out": {
|
||||||
"title_template": translate("flash.logged_out"),
|
"title_template": translate("flash.logged_out"),
|
||||||
"message_template": """
|
"message_template": """
|
||||||
@ -76,13 +66,6 @@ MESSAGES = {
|
|||||||
""",
|
""",
|
||||||
"category": "success",
|
"category": "success",
|
||||||
},
|
},
|
||||||
"new_portfolio": {
|
|
||||||
"title_template": "Portfolio created!",
|
|
||||||
"message_template": """
|
|
||||||
<p>You are now ready to create applications and environments within the JEDI Cloud.</p>
|
|
||||||
""",
|
|
||||||
"category": "success",
|
|
||||||
},
|
|
||||||
"new_portfolio_member": {
|
"new_portfolio_member": {
|
||||||
"title_template": translate("flash.success"),
|
"title_template": translate("flash.success"),
|
||||||
"message_template": """
|
"message_template": """
|
||||||
@ -90,13 +73,6 @@ MESSAGES = {
|
|||||||
""",
|
""",
|
||||||
"category": "success",
|
"category": "success",
|
||||||
},
|
},
|
||||||
"portfolio_member_dod_id_error": {
|
|
||||||
"title_template": "CAC ID Error",
|
|
||||||
"message_template": """
|
|
||||||
The member attempted to accept this invite, but their CAC ID did not match the CAC ID you specified on the invite. Please confirm that the DoD ID is accurate.
|
|
||||||
""",
|
|
||||||
"category": "error",
|
|
||||||
},
|
|
||||||
"portfolio_member_removed": {
|
"portfolio_member_removed": {
|
||||||
"title_template": translate("flash.deleted_member"),
|
"title_template": translate("flash.deleted_member"),
|
||||||
"message_template": """
|
"message_template": """
|
||||||
@ -104,13 +80,6 @@ MESSAGES = {
|
|||||||
""",
|
""",
|
||||||
"category": "success",
|
"category": "success",
|
||||||
},
|
},
|
||||||
"portfolio_role_updated": {
|
|
||||||
"title_template": "Portfolio role updated successfully",
|
|
||||||
"message_template": """
|
|
||||||
<p>{{ member_name }}'s role was successfully updated to {{ updated_role }}</p>
|
|
||||||
""",
|
|
||||||
"category": "success",
|
|
||||||
},
|
|
||||||
"primary_point_of_contact_changed": {
|
"primary_point_of_contact_changed": {
|
||||||
"title_template": translate("flash.new_ppoc_title"),
|
"title_template": translate("flash.new_ppoc_title"),
|
||||||
"message_template": """{{ "flash.new_ppoc_message" | translate({ "ppoc_name": ppoc_name }) }}""",
|
"message_template": """{{ "flash.new_ppoc_message" | translate({ "ppoc_name": ppoc_name }) }}""",
|
||||||
@ -137,43 +106,11 @@ MESSAGES = {
|
|||||||
""",
|
""",
|
||||||
"category": "error",
|
"category": "error",
|
||||||
},
|
},
|
||||||
"task_order_congrats": {
|
|
||||||
"title_template": translate("flash.congrats"),
|
|
||||||
"message_template": translate("flash.new_portfolio"),
|
|
||||||
"actions": """
|
|
||||||
{% from "components/icon.html" import Icon %}
|
|
||||||
<div class='alert__actions'>
|
|
||||||
<a href='{{ url_for("applications.portfolio_applications", portfolio_id=portfolio.id) }}' class='icon-link'>
|
|
||||||
{{ Icon('shield') }}
|
|
||||||
<span>{{ "flash.portfolio_home" | translate }}</span>
|
|
||||||
</a>
|
|
||||||
<a href='#next-steps' class='icon-link'>
|
|
||||||
{{ Icon('arrow-down') }}
|
|
||||||
<span>{{ "flash.next_steps" | translate }}</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
""",
|
|
||||||
"category": "success",
|
|
||||||
},
|
|
||||||
"task_order_draft": {
|
"task_order_draft": {
|
||||||
"title_template": translate("task_orders.form.draft_alert_title"),
|
"title_template": translate("task_orders.form.draft_alert_title"),
|
||||||
"message_template": translate("task_orders.form.draft_alert_message"),
|
"message_template": translate("task_orders.form.draft_alert_message"),
|
||||||
"category": "warning",
|
"category": "warning",
|
||||||
},
|
},
|
||||||
"task_order_incomplete": {
|
|
||||||
"title_template": "Task Order Incomplete",
|
|
||||||
"message_template": """
|
|
||||||
You must complete your task order form before submitting.
|
|
||||||
""",
|
|
||||||
"category": "error",
|
|
||||||
},
|
|
||||||
"task_order_signed": {
|
|
||||||
"title_template": "Task Order Signed",
|
|
||||||
"message_template": """
|
|
||||||
<p>Task order has been signed successfully</p>
|
|
||||||
""",
|
|
||||||
"category": "success",
|
|
||||||
},
|
|
||||||
"task_order_submitted": {
|
"task_order_submitted": {
|
||||||
"title_template": "Your Task Order has been uploaded successfully.",
|
"title_template": "Your Task Order has been uploaded successfully.",
|
||||||
"message_template": """
|
"message_template": """
|
||||||
|
@ -83,18 +83,14 @@ email:
|
|||||||
flash:
|
flash:
|
||||||
application:
|
application:
|
||||||
deleted: 'You have successfully deleted the {application_name} application. To view the retained activity log, visit the portfolio administration page.'
|
deleted: 'You have successfully deleted the {application_name} application. To view the retained activity log, visit the portfolio administration page.'
|
||||||
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.'
|
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_member: 'You have successfully invited {user_name} to the portfolio.'
|
new_portfolio_member: 'You have successfully invited {user_name} to the portfolio.'
|
||||||
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.'
|
||||||
new_ppoc_title: Primary point of contact updated
|
new_ppoc_title: Primary point of contact updated
|
||||||
next_steps: Review next steps below
|
|
||||||
portfolio_home: Go to my portfolio home page
|
|
||||||
success: Success!
|
success: Success!
|
||||||
new_application_member: 'You have successfully invited {user_name} to the team.'
|
new_application_member: 'You have successfully invited {user_name} to the team.'
|
||||||
updated_application_team_settings: 'You have updated the {application_name} team settings.'
|
updated_application_team_settings: 'You have updated the {application_name} team settings.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user