diff --git a/js/components/forms/oversight.js b/js/components/forms/oversight.js index d1613b55..27227516 100644 --- a/js/components/forms/oversight.js +++ b/js/components/forms/oversight.js @@ -2,6 +2,27 @@ import FormMixin from '../../mixins/form' import textinput from '../text_input' import checkboxinput from '../checkbox_input' +const cordata = { + name: 'cordata', + + components: { + textinput, + checkboxinput, + }, + + mixins: [FormMixin], + + props: { + initialCorInvite: Boolean, + }, + + data: function() { + return { + cor_invite: this.initialCorInvite, + } + }, +} + export default { name: 'oversight', @@ -10,6 +31,7 @@ export default { components: { textinput, checkboxinput, + cordata, }, props: { diff --git a/templates/task_orders/new/oversight.html b/templates/task_orders/new/oversight.html index e3cb255e..77ed3e94 100644 --- a/templates/task_orders/new/oversight.html +++ b/templates/task_orders/new/oversight.html @@ -26,13 +26,18 @@

{{ "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) }} + +
+
+