diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index 4b5c51aa..1d3b1902 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -241,12 +241,16 @@ $(function () { $(this).find('.child-field').each(function() { var fieldName = $(this).attr('data-target-form-field'); var targetInput = $("input[name='" +fieldName + "']"); + if (targetInput.length === 0) { + targetInput = $("textarea[name='" +fieldName + "']"); + } var mirrorTargetId = replaceSuffix(targetInput.attr('data-mirror_target'), activeChildRow); targetInput.attr('data-mirror_target', mirrorTargetId); if (targetInput.prop('type') === 'text' || targetInput.prop('type') === 'textarea') { targetInput.val($(this).text()); + targetInput.show(); } else if (targetInput.prop('type') === 'radio') { targetInput.filter("[value='" + $(this).text() + "']").prop('checked', true); } diff --git a/edivorce/apps/core/templates/partials/your_children_child.html b/edivorce/apps/core/templates/partials/your_children_child.html index a74a8dba..ee77384c 100644 --- a/edivorce/apps/core/templates/partials/your_children_child.html +++ b/edivorce/apps/core/templates/partials/your_children_child.html @@ -35,4 +35,9 @@
{{ custody }}
- \ No newline at end of file + + +
{{ other_details }}
+ diff --git a/edivorce/apps/core/templates/question/06_children.html b/edivorce/apps/core/templates/question/06_children.html index f3048c62..c37471a5 100644 --- a/edivorce/apps/core/templates/question/06_children.html +++ b/edivorce/apps/core/templates/question/06_children.html @@ -36,7 +36,7 @@ {% for child in children %} {{ child.name }} - {% include "partials/your_children_child.html" with name=child.child_name birth_date=child.child_birth_date live_with=child.child_live_with custody=child.child_custody live_with=child.child_live_with relationship_to_you=child.child_relationship_to_you relationship_to_spouse=child.child_relationship_to_spouse div_id=forloop.counter counter=forloop.counter %} + {% include "partials/your_children_child.html" with name=child.child_name birth_date=child.child_birth_date live_with=child.child_live_with custody=child.child_custody live_with=child.child_live_with relationship_to_you=child.child_relationship_to_you relationship_to_spouse=child.child_relationship_to_spouse other_details=child.child_live_with_other_details div_id=forloop.counter counter=forloop.counter %} {% endfor %} {% endif %} @@ -102,7 +102,7 @@