diff --git a/edivorce/apps/core/static/js/functions.js b/edivorce/apps/core/static/js/functions.js index 8b0f20e2..399a3618 100644 --- a/edivorce/apps/core/static/js/functions.js +++ b/edivorce/apps/core/static/js/functions.js @@ -91,6 +91,10 @@ var showHideTargetId = function(el, id, relatedId, revealControlGroup) { if (id === "#has_children") { reveal($("input[name=number_children_over_19]")); } + // Special case of hide child support description. + if (id === "#child_support_in_order_detail") { + $("#child_support_description").hide(); + } // reveal nested question as well if (id === "#marriage_certificate") { @@ -115,6 +119,11 @@ var showHideTargetId = function(el, id, relatedId, revealControlGroup) { $(el.data("reveal_force_hide_group")).find(':radio').prop('checked', false); } + // Special case of show child support description. + if (id === "#child_support_in_order_detail") { + $("#child_support_description").show(); + } + if (relatedId !== undefined){ $('#' + relatedId).show(); } @@ -147,6 +156,12 @@ var showHideRevealClass = function(el, targetCssClass) { } else { if (targetCssClass !== undefined){ $('.' + targetCssClass).show(); + // This is to handle special case where multiple reveal options applied. + if (targetCssClass === 'support-amount-match') { + if ($("input[name=claimants_agree_to_child_support_amount]:checked").val() === 'YES') { + $('#what_special_provisions').hide(); + } + } } } }; diff --git a/edivorce/apps/core/templates/pdf/form1.html b/edivorce/apps/core/templates/pdf/form1.html index 0d23a383..bd6d3580 100644 --- a/edivorce/apps/core/templates/pdf/form1.html +++ b/edivorce/apps/core/templates/pdf/form1.html @@ -420,14 +420,14 @@ - A. {% checkbox responses.order_respecting_arrangement children_of_marriage='YES' want_which_orders='Child support' %} + A. {% checkbox want_parenting_arrangements='YES' children_of_marriage='YES' want_which_orders='Child support' %}
Claimant 1 and Claimant 2 are asking for the following order respecting arrangements for parenting or contact: - {% if responses.children_of_marriage == 'YES' and responses.order_respecting_arrangement and 'Child support' in responses.want_which_orders %} + {% if responses.children_of_marriage == 'YES' and responses.want_parenting_arrangements == 'YES' and responses.order_respecting_arrangement and 'Child support' in responses.want_which_orders %} {% endif %} @@ -437,13 +437,18 @@ - B. {% checkbox responses.order_for_child_support children_of_marriage='YES' want_which_orders='Child support' %} + B. + {% if responses.child_support_in_order == 'NO' %} + {% checkbox false %} + {% else %} + {% checkbox responses.order_for_child_support children_of_marriage='YES' want_which_orders='Child support' %} + {% endif %}
Claimant 1 and Claimant 2 are asking for an order for child support as follows: - {% if responses.children_of_marriage == 'YES' and responses.order_for_child_support and 'Child support' in responses.want_which_orders %} + {% if responses.children_of_marriage == 'YES' and responses.order_for_child_support and 'Child support' in responses.want_which_orders and responses.child_support_in_order != 'NO' %}
    {{ responses.order_for_child_support|striptags|linebreaksli }}
{% endif %}
diff --git a/edivorce/apps/core/templates/pdf/form52.html b/edivorce/apps/core/templates/pdf/form52.html index 16c1dd63..8df6f339 100644 --- a/edivorce/apps/core/templates/pdf/form52.html +++ b/edivorce/apps/core/templates/pdf/form52.html @@ -112,10 +112,11 @@ {% for order in derived.pursuant_parenting_arrangement %}
  • {{ order }}
  • {% endfor %} - - {% for order in derived.pursuant_child_support %} -
  • {{ order }}
  • - {% endfor %} + {% if responses.child_support_in_order != 'NO' %} + {% for order in derived.pursuant_child_support %} +
  • {{ order }}
  • + {% endfor %} + {% endif %} {% endif %} {% if responses.children_of_marriage == 'YES' and responses.special_extraordinary_expenses == 'YES' %} diff --git a/edivorce/apps/core/templates/question/06_children_what_for.html b/edivorce/apps/core/templates/question/06_children_what_for.html index 7a70965d..742b5b03 100644 --- a/edivorce/apps/core/templates/question/06_children_what_for.html +++ b/edivorce/apps/core/templates/question/06_children_what_for.html @@ -177,8 +177,6 @@
    - - {% if 'Child support' in want_which_orders|load_json %}

    Do you have a + {% if 'Child support' in want_which_orders|load_json %}
    -

    If you are asking the court to include an +

    Are you asking the court for an order about parenting arrangements or contact - with a child, please indicate the orders you are asking for below. + with a child?

    +
    + + + +
    +
    + + -
    +

    If you are asking for an