From 2145549c1b4418cef5dc9696536bb2eef1e4ed89 Mon Sep 17 00:00:00 2001 From: Montana Date: Mon, 14 Jan 2019 14:54:48 -0500 Subject: [PATCH] Add translation label for cor checkbox --- atst/forms/task_order.py | 3 +++ js/components/forms/cor.js | 31 +++++++++++++++++++++++++++++++ translations.yaml | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 js/components/forms/cor.js diff --git a/atst/forms/task_order.py b/atst/forms/task_order.py index ce33476d..e7a1e7a7 100644 --- a/atst/forms/task_order.py +++ b/atst/forms/task_order.py @@ -120,6 +120,9 @@ class OversightForm(CacheableForm): validators=[Required(), Length(min=10), IsNumber()], ) + am_cor = BooleanField( + translate("forms.task_order.oversight_am_cor_label"), + ) cor_first_name = StringField( translate("forms.task_order.oversight_first_name_label") ) diff --git a/js/components/forms/cor.js b/js/components/forms/cor.js new file mode 100644 index 00000000..11e8e578 --- /dev/null +++ b/js/components/forms/cor.js @@ -0,0 +1,31 @@ +import FormMixin from '../../mixins/form' +import textinput from '../text_input' +import checkboxinput from '../checkbox_input' + +export default { + name: 'cor', + + mixins: [FormMixin], + + components: { + textinput, + checkboxinput, + }, + + props: { + initialData: { + type: Object, + default: () => ({}) + } + }, + + data: function () { + const { + am_cor = false + } = this.initialData + + return { + am_cor + } + } +} diff --git a/translations.yaml b/translations.yaml index 987addb9..20e887e2 100644 --- a/translations.yaml +++ b/translations.yaml @@ -197,6 +197,7 @@ forms: oversight_email_label: Email oversight_phone_label: Phone Number oversight_dod_id_label: DoD ID + oversight_am_cor_label: I am the Contracting Officer Representative (COR) for this Task Order ko_invite_label: Invite KO to Task Order Builder cor_invite_label: Invite COR to Task Order Builder so_invite_label: Invite Security Officer to Task Order Builder @@ -377,7 +378,6 @@ task_orders: skip_ko_label: "Skip for now (We'll remind you to enter one later)" cor_info_title: Contractive Officer Representative (COR) Information cor_info_paragraph: Your COR may assist in submitting the Task Order documents within thier official system of record. They may also be invited to log in an manage the Task Order entry within the JEDI Cloud portal. - am_cor_label: I am the Contracting Officer Representative (COR) for this Task Order so_info_title: Security Officer Information so_info_paragraph: our Security Officer will need to answer some security configuration questions in order to generate a DD-254 document, then electronically sign. testing: