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 = [ DEV_TEAM = [
("government_civilians", "Government Civilians"), (
("military", "Military "), "government_civilians",
("contractor", "Contractor "), translate("forms.task_order.dev_team.government_civilians"),
("other", "Other <em>(E.g. University or other partner)</em>"), ),
("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 = [ TEAM_EXPERIENCE = [

View File

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

View File

@ -73,7 +73,12 @@
<ul class="checklist"> <ul class="checklist">
{% for item in task_order.dev_team %} {% for item in task_order.dev_team %}
<li> <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> </li>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@ -190,8 +190,13 @@ forms:
not_sure: Not Sure not_sure: Not Sure
other: Other other: Other
complexity_other_label: Project Complexity Other complexity_other_label: Project Complexity Other
dev_team_label: Development Team dev_team:
dev_team_description: Which people or teams will be completing the development work for your cloud applications? Select all that apply. 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 dev_team_other_label: Development Team Other
team_experience: team_experience:
label: Team Experience label: Team Experience