Adding to translations file

This commit is contained in:
rachel-dtr 2019-04-16 14:52:33 -04:00
parent 1315e971fc
commit 5c8d12c617
2 changed files with 8 additions and 4 deletions

View File

@ -13,28 +13,28 @@ class PermissionsForm(BaseForm):
member = StringField() member = StringField()
user_id = HiddenField() user_id = HiddenField()
perms_app_mgmt = SelectField( perms_app_mgmt = SelectField(
"App management", translate("forms.new_member.app_mgmt"),
choices=[ choices=[
(PermissionSets.VIEW_PORTFOLIO_APPLICATION_MANAGEMENT, "View only"), (PermissionSets.VIEW_PORTFOLIO_APPLICATION_MANAGEMENT, "View only"),
(PermissionSets.EDIT_PORTFOLIO_APPLICATION_MANAGEMENT, "Edit access"), (PermissionSets.EDIT_PORTFOLIO_APPLICATION_MANAGEMENT, "Edit access"),
], ],
) )
perms_funding = SelectField( perms_funding = SelectField(
"Funding", translate("forms.new_member.funding"),
choices=[ choices=[
(PermissionSets.VIEW_PORTFOLIO_FUNDING, "View only"), (PermissionSets.VIEW_PORTFOLIO_FUNDING, "View only"),
(PermissionSets.EDIT_PORTFOLIO_FUNDING, "Edit access"), (PermissionSets.EDIT_PORTFOLIO_FUNDING, "Edit access"),
], ],
) )
perms_reporting = SelectField( perms_reporting = SelectField(
"Reporting", translate("forms.new_member.reporting"),
choices=[ choices=[
(PermissionSets.VIEW_PORTFOLIO_REPORTS, "View only"), (PermissionSets.VIEW_PORTFOLIO_REPORTS, "View only"),
(PermissionSets.EDIT_PORTFOLIO_REPORTS, "Edit access"), (PermissionSets.EDIT_PORTFOLIO_REPORTS, "Edit access"),
], ],
) )
perms_portfolio_mgmt = SelectField( perms_portfolio_mgmt = SelectField(
"Portfolio management", translate("forms.new_member.portfolio_mgmt"),
choices=[ choices=[
(PermissionSets.VIEW_PORTFOLIO_ADMIN, "View only"), (PermissionSets.VIEW_PORTFOLIO_ADMIN, "View only"),
(PermissionSets.EDIT_PORTFOLIO_ADMIN, "Edit access"), (PermissionSets.EDIT_PORTFOLIO_ADMIN, "Edit access"),

View File

@ -160,6 +160,10 @@ forms:
portfolio_role_description: 'The portfolio role controls whether a member is permitted to organize a portfolio into applications and environments, add members to this portfolio, and view billing information.' portfolio_role_description: 'The portfolio role controls whether a member is permitted to organize a portfolio into applications and environments, add members to this portfolio, and view billing information.'
portfolio_role_label: Portfolio Role portfolio_role_label: Portfolio Role
access: Access Level access: Access Level
app_mgmt: App management
funding: Funding
reporting: Reporting
portfolio_mgmt: Portfolio management
new_request: new_request:
am_poc_label: I am the Portfolio Owner am_poc_label: I am the Portfolio Owner
average_daily_traffic_description: What is the average daily traffic you expect the systems under this cloud contract to use? average_daily_traffic_description: What is the average daily traffic you expect the systems under this cloud contract to use?