Browse Source

Merge pull request #51 from bcgov/DIV-956

DIV-956: Updated number fields on prequal step 4 to dynamically pull …
pull/160/head
Charles Shin 6 years ago
committed by GitHub
parent
commit
c3821b75cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      edivorce/apps/core/static/js/main.js
  2. +2
    -2
      edivorce/apps/core/templates/prequalification/step_04.html

+ 2
- 0
edivorce/apps/core/static/js/main.js View File

@ -1235,3 +1235,5 @@ $('.no-collapse').on('click', function (e) {
e.stopPropagation();
});
// Insert default value to number fields
$('.number-field-default-zero').val('0');

+ 2
- 2
edivorce/apps/core/templates/prequalification/step_04.html View File

@ -129,13 +129,13 @@
<div class="reveal question-well">
<h3>How many children are under the age of 19?</h3>
{% input_field type="number" name="number_children_under_19" value="0" min="0" data_target_id="number_children_under_19" %}
{% input_field type="number" class="number-field-default-zero" name="number_children_under_19" min="0" data_target_id="number_children_under_19" %}
</div>
<div class="reveal question-well">
<h3>How many children are 19 years or older?</h3>
{% input_field type="number" name="number_children_over_19" value="0" min="0" data_target_id="number_children_over_19" data_related_id="financial_support" data_target_class="not-disqualified-age" data_reveal_class="true" data_reveal_condition=">0" %}
{% input_field type="number" class="number-field-default-zero" name="number_children_over_19" min="0" data_target_id="number_children_over_19" data_related_id="financial_support" data_target_class="not-disqualified-age" data_reveal_class="true" data_reveal_condition=">0" %}
</div>
<div class="reveal question-well" id="financial_support" hidden>


Loading…
Cancel
Save