COR section disappears if am_cor is checked

This commit is contained in:
Montana 2019-01-14 14:55:21 -05:00
parent 2145549c1b
commit 940419b577
2 changed files with 12 additions and 11 deletions

View File

@ -11,6 +11,7 @@ import textinput from './components/text_input'
import checkboxinput from './components/checkbox_input' import checkboxinput from './components/checkbox_input'
import DetailsOfUse from './components/forms/details_of_use' import DetailsOfUse from './components/forms/details_of_use'
import poc from './components/forms/poc' import poc from './components/forms/poc'
import cor from './components/forms/cor'
import financial from './components/forms/financial' import financial from './components/forms/financial'
import toggler from './components/toggler' import toggler from './components/toggler'
import NewApplication from './components/forms/new_application' import NewApplication from './components/forms/new_application'
@ -43,6 +44,7 @@ const app = new Vue({
checkboxinput, checkboxinput,
DetailsOfUse, DetailsOfUse,
poc, poc,
cor,
financial, financial,
NewApplication, NewApplication,
selector, selector,

View File

@ -21,17 +21,16 @@
<h3>{{ "task_orders.new.oversight.cor_info_title" | translate }}</h3> <h3>{{ "task_orders.new.oversight.cor_info_title" | translate }}</h3>
<p>{{ "task_orders.new.oversight.cor_info_paragraph" | translate }}</p> <p>{{ "task_orders.new.oversight.cor_info_paragraph" | translate }}</p>
<div class='usa-input'> <cor inline-template v-bind:initial-data='{{ form.data|tojson }}'>
<fieldset class="usa-input__choices"> <div class='usa-input'>
<legend> {{ CheckboxInput(form.am_cor) }}
<input type="checkbox" name="am_cor" id="am_cor" value="y" /> <template v-if="!am_cor">
<label for="am_cor">{{ "task_orders.new.oversight.am_cor_label" | translate }}</label> {{ UserInfo(form.cor_first_name, form.cor_last_name, form.cor_email, form.cor_phone_number) }}
</legend> {{ CheckboxInput(form.cor_invite) }}
</fieldset> {{ TextInput(form.cor_dod_id, placeholder="1234567890", tooltip="Why", tooltip_title='Why', validation='dodId')}}
</div> </template>
{{ UserInfo(form.cor_first_name, form.cor_last_name, form.cor_email, form.cor_phone_number) }} </div>
{{ CheckboxInput(form.cor_invite) }} </cor>
{{ TextInput(form.cor_dod_id, placeholder="1234567890", tooltip="Why", tooltip_title='Why', validation='dodId')}}
<hr /> <hr />