Add dev team options to translations file so they can be used in the to review template

This commit is contained in:
leigh-mil 2019-01-15 16:53:18 -05:00
parent 08555e543e
commit 7891432e90
4 changed files with 22 additions and 9 deletions

View File

@ -195,10 +195,13 @@ APPLICATION_COMPLEXITY = [
]
DEV_TEAM = [
("government_civilians", "Government Civilians"),
("military", "Military "),
("contractor", "Contractor "),
("other", "Other <em>(E.g. University or other partner)</em>"),
(
"government_civilians",
translate("forms.task_order.dev_team.government_civilians"),
),
("military", translate("forms.task_order.dev_team.military")),
("contractor", translate("forms.task_order.dev_team.contractor")),
("other", translate("forms.task_order.dev_team.other")),
]
TEAM_EXPERIENCE = [

View File

@ -59,8 +59,8 @@ class AppInfoForm(CacheableForm):
)
complexity_other = StringField(translate("forms.task_order.complexity_other_label"))
dev_team = SelectMultipleField(
translate("forms.task_order.dev_team_label"),
description=translate("forms.task_order.dev_team_description"),
translate("forms.task_order.dev_team.label"),
description=translate("forms.task_order.dev_team.description"),
choices=DEV_TEAM,
default="",
widget=ListWidget(prefix_label=False),

View File

@ -73,7 +73,12 @@
<ul class="checklist">
{% for item in task_order.dev_team %}
<li>
{{ Icon('ok', classes='icon--gray icon--medium') }}{{ item.title() }}{% if item == 'other' %}: {{ task_order.dev_team_other }}{% endif %}
{% if item == 'other' %}
{{ Icon('ok', classes='icon--gray icon--medium') }}Other: {{ task_order.dev_team_other }}
{% else %}
{{ Icon('ok', classes='icon--gray icon--medium') }}{{ "forms.task_order.dev_team.{}".format(item) | translate }}
{% endif %}
</li>
{% endfor %}
</ul>

View File

@ -190,8 +190,13 @@ forms:
not_sure: Not Sure
other: Other
complexity_other_label: Project Complexity Other
dev_team_label: Development Team
dev_team_description: Which people or teams will be completing the development work for your cloud applications? Select all that apply.
dev_team:
label: Development Team
description: Which people or teams will be completing the development work for your cloud applications? Select all that apply.
government_civilians: Government Civilians
military: Military
contractor: Contractor
other: "Other <em>(E.g. University or other partner)</em>"
dev_team_other_label: Development Team Other
team_experience:
label: Team Experience