Browse Source

DIV-917: Updated reveal logic for order_for_child_support question.

pull/160/head
Charles Shin 6 years ago
parent
commit
1795c2875d
4 changed files with 22 additions and 7 deletions
  1. +9
    -0
      edivorce/apps/core/static/js/functions.js
  2. +7
    -2
      edivorce/apps/core/templates/pdf/form1.html
  3. +5
    -4
      edivorce/apps/core/templates/pdf/form52.html
  4. +1
    -1
      edivorce/apps/core/templates/question/06_children_what_for.html

+ 9
- 0
edivorce/apps/core/static/js/functions.js View File

@ -91,6 +91,10 @@ var showHideTargetId = function(el, id, relatedId, revealControlGroup) {
if (id === "#has_children") { if (id === "#has_children") {
reveal($("input[name=number_children_over_19]")); 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 // reveal nested question as well
if (id === "#marriage_certificate") { 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); $(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){ if (relatedId !== undefined){
$('#' + relatedId).show(); $('#' + relatedId).show();
} }


+ 7
- 2
edivorce/apps/core/templates/pdf/form1.html View File

@ -437,13 +437,18 @@
<tr> <tr>
<td colname="c2"> <td colname="c2">
<span class="td-list-item"> <span class="td-list-item">
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 %}
</span> </span>
<div class="td-list-text"> <div class="td-list-text">
Claimant 1 and Claimant 2 are asking for an order for Claimant 1 and Claimant 2 are asking for an order for
child support as follows: child support as follows:
<span class="form-entry form-textarea not-complete form-list-textarea"> <span class="form-entry form-textarea not-complete form-list-textarea">
{% 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' %}
<ul>{{ responses.order_for_child_support|striptags|linebreaksli }}</ul> <ul>{{ responses.order_for_child_support|striptags|linebreaksli }}</ul>
{% endif %} {% endif %}
</span> </span>


+ 5
- 4
edivorce/apps/core/templates/pdf/form52.html View File

@ -112,10 +112,11 @@
{% for order in derived.pursuant_parenting_arrangement %} {% for order in derived.pursuant_parenting_arrangement %}
<li>{{ order }}</li> <li>{{ order }}</li>
{% endfor %} {% endfor %}
{% for order in derived.pursuant_child_support %}
<li>{{ order }}</li>
{% endfor %}
{% if responses.child_support_in_order != 'NO' %}
{% for order in derived.pursuant_child_support %}
<li>{{ order }}</li>
{% endfor %}
{% endif %}
{% endif %} {% endif %}
{% if responses.children_of_marriage == 'YES' and responses.special_extraordinary_expenses == 'YES' %} {% if responses.children_of_marriage == 'YES' and responses.special_extraordinary_expenses == 'YES' %}


+ 1
- 1
edivorce/apps/core/templates/question/06_children_what_for.html View File

@ -310,7 +310,7 @@
{% input_field type="textarea" name="order_respecting_arrangement" class="response-textarea form-control" maxlength="20000" rows="7"%} {% input_field type="textarea" name="order_respecting_arrangement" class="response-textarea form-control" maxlength="20000" rows="7"%}
</div> </div>
<div class="question-well">
<div class="question-well" id="child_support_description">
<h3>If you are asking for an <h3>If you are asking for an
<span class="tooltip-link" <span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true" data-toggle="tooltip" data-placement="right" data-html="true"


Loading…
Cancel
Save