Updating content across the site
This commit is contained in:
@@ -14,29 +14,29 @@ class PermissionsForm(BaseForm):
|
||||
perms_app_mgmt = SelectField(
|
||||
translate("forms.new_member.app_mgmt"),
|
||||
choices=[
|
||||
(PermissionSets.VIEW_PORTFOLIO_APPLICATION_MANAGEMENT, "View only"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_APPLICATION_MANAGEMENT, "Edit access"),
|
||||
(PermissionSets.VIEW_PORTFOLIO_APPLICATION_MANAGEMENT, "View"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_APPLICATION_MANAGEMENT, "Edit"),
|
||||
],
|
||||
)
|
||||
perms_funding = SelectField(
|
||||
translate("forms.new_member.funding"),
|
||||
choices=[
|
||||
(PermissionSets.VIEW_PORTFOLIO_FUNDING, "View only"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_FUNDING, "Edit access"),
|
||||
(PermissionSets.VIEW_PORTFOLIO_FUNDING, "View"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_FUNDING, "Edit"),
|
||||
],
|
||||
)
|
||||
perms_reporting = SelectField(
|
||||
translate("forms.new_member.reporting"),
|
||||
choices=[
|
||||
(PermissionSets.VIEW_PORTFOLIO_REPORTS, "View only"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_REPORTS, "Edit access"),
|
||||
(PermissionSets.VIEW_PORTFOLIO_REPORTS, "View"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_REPORTS, "Edit"),
|
||||
],
|
||||
)
|
||||
perms_portfolio_mgmt = SelectField(
|
||||
translate("forms.new_member.portfolio_mgmt"),
|
||||
choices=[
|
||||
(PermissionSets.VIEW_PORTFOLIO_ADMIN, "View only"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_ADMIN, "Edit access"),
|
||||
(PermissionSets.VIEW_PORTFOLIO_ADMIN, "View"),
|
||||
(PermissionSets.EDIT_PORTFOLIO_ADMIN, "Edit"),
|
||||
],
|
||||
)
|
||||
|
||||
|
@@ -13,15 +13,15 @@ class PermissionsForm(FlaskForm):
|
||||
perms_team_mgmt = SelectField(
|
||||
translate("portfolios.applications.members.new.manage_team"),
|
||||
choices=[
|
||||
(PermissionSets.VIEW_APPLICATION, "View only"),
|
||||
(PermissionSets.EDIT_APPLICATION_TEAM, "Edit access"),
|
||||
(PermissionSets.VIEW_APPLICATION, "View"),
|
||||
(PermissionSets.EDIT_APPLICATION_TEAM, "Edit"),
|
||||
],
|
||||
)
|
||||
perms_env_mgmt = SelectField(
|
||||
translate("portfolios.applications.members.new.manage_envs"),
|
||||
choices=[
|
||||
(PermissionSets.VIEW_APPLICATION, "View only"),
|
||||
(PermissionSets.EDIT_APPLICATION_ENVIRONMENTS, "Edit access"),
|
||||
(PermissionSets.VIEW_APPLICATION, "View"),
|
||||
(PermissionSets.EDIT_APPLICATION_ENVIRONMENTS, "Edit"),
|
||||
],
|
||||
)
|
||||
perms_del_env = SelectField(
|
||||
|
@@ -79,10 +79,8 @@ MESSAGES = {
|
||||
"category": "error",
|
||||
},
|
||||
"login_next": {
|
||||
"title_template": "Log in Required.",
|
||||
"message_template": """
|
||||
After you log in, you will be redirected to your destination page.
|
||||
""",
|
||||
"title_template": translate("flash.login_required_title"),
|
||||
"message_template": translate("flash.login_required_message"),
|
||||
"category": "warning",
|
||||
},
|
||||
"new_portfolio": {
|
||||
@@ -162,7 +160,7 @@ MESSAGES = {
|
||||
"title_template": translate("flash.success"),
|
||||
"message_template": """
|
||||
{{ "flash.application.deleted" | translate({"application_name": application_name}) }}
|
||||
<a href="#">Undo</a>.
|
||||
<a href="#">translate("common.undo")</a>
|
||||
""",
|
||||
"category": "success",
|
||||
},
|
||||
|
Reference in New Issue
Block a user