Funding type other input is only required if funding type is other

This commit is contained in:
richard-dds
2018-08-16 13:52:17 -04:00
parent 4a1a3571bc
commit 59b5e19c79
5 changed files with 76 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
{% block content %}
<financial inline-template v-bind:initial-data='{{ f.data|tojson }}'>
<div class="col">
<div class="panel">
@@ -92,7 +93,9 @@
<fieldset class="form__sub-fields form__sub-fields--warning">
{{ OptionsInput(f.funding_type) }}
{{ TextInput(f.funding_type_other) }}
<template v-if="funding_type == 'OTHER'" v-cloak>
{{ TextInput(f.funding_type_other) }}
</template>
{{ TextInput(
f.clin_0001,placeholder="50,000",
@@ -132,9 +135,9 @@
<input type='submit' class='usa-button usa-button-primary' value='Save & Continue' />
{% endblock %}
</form>
</div>
</div>
</div>
</financial>
{% endblock %}
{% endblock %}