diff --git a/js/components/forms/oversight.js b/js/components/forms/oversight.js index d1613b55..2516fad1 100644 --- a/js/components/forms/oversight.js +++ b/js/components/forms/oversight.js @@ -2,6 +2,47 @@ import FormMixin from '../../mixins/form' import textinput from '../text_input' import checkboxinput from '../checkbox_input' +const dodid = { + name: 'dodid', + + mixins: [FormMixin], + + components: { + textinput, + }, + + props: { + initialInvite: Boolean, + }, + + data: function() { + return { + invite: this.initialInvite, + } + }, +} + +const cordata = { + name: 'cordata', + + mixins: [FormMixin], + + components: { + textinput, + checkboxinput, + }, + + props: { + initialCorInvite: Boolean, + }, + + data: function() { + return { + cor_invite: this.initialCorInvite, + } + }, +} + export default { name: 'oversight', @@ -10,6 +51,8 @@ export default { components: { textinput, checkboxinput, + cordata, + dodid, }, props: { diff --git a/templates/task_orders/new/oversight.html b/templates/task_orders/new/oversight.html index e3cb255e..0841faf8 100644 --- a/templates/task_orders/new/oversight.html +++ b/templates/task_orders/new/oversight.html @@ -17,22 +17,29 @@
{{ UserInfo(form.ko_first_name, form.ko_last_name, form.ko_email, form.ko_phone_number) }} {{ CheckboxInput(form.ko_invite) }} - + + + {{ TextInput(form.ko_dod_id, placeholder="1234567890", tooltip="Why", tooltip_title='Why', validation='dodId', classes="task-order__invite-officer")}} + +

{{ "task_orders.new.oversight.cor_info_title" | translate }}

{{ "task_orders.new.oversight.cor_info_paragraph" | translate }}

{{ CheckboxInput(form.am_cor, classes="normal") }} - + + + +
+ {{ UserInfo(form.cor_first_name, form.cor_last_name, form.cor_email, form.cor_phone_number) }} + {{ CheckboxInput(form.cor_invite) }} + +
+
+

@@ -40,9 +47,11 @@

{{ "task_orders.new.oversight.so_info_paragraph" | translate }}

{{ UserInfo(form.so_first_name, form.so_last_name, form.so_email, form.so_phone_number) }} {{ CheckboxInput(form.so_invite) }} - + + + {{ TextInput(form.so_dod_id, placeholder="1234567890", tooltip="Why", tooltip_title='Why', validation='dodId', classes="task-order__invite-officer")}} + +