Browse Source

DIV-818: ensuring all money fields that should be positive only accept floats not just integers

pull/160/head
Benard Ebinu 7 years ago
parent
commit
6bad7fefea
5 changed files with 5 additions and 5 deletions
  1. +1
    -1
      edivorce/apps/core/templates/partials/fact_sheet_excessive_debt.html
  2. +1
    -1
      edivorce/apps/core/templates/partials/fact_sheet_expense.html
  3. +1
    -1
      edivorce/apps/core/templates/partials/fact_sheet_income_others.html
  4. +1
    -1
      edivorce/apps/core/templates/question/06_children_income_expenses.html
  5. +1
    -1
      edivorce/apps/core/templates/question/06_children_payor_medical.html

+ 1
- 1
edivorce/apps/core/templates/partials/fact_sheet_excessive_debt.html View File

@ -7,7 +7,7 @@
</td> </td>
<td class="fact-sheet-answer table-bordered"> <td class="fact-sheet-answer table-bordered">
<div class="dollar-prefix"> <div class="dollar-prefix">
{% money_input_field name="debt_monthly_amount" value=debt_monthly_amount multiple='true' class="fact-sheet-input money positive-integer debt-input-field" placeholder="" data_save_row="true" data_save_select=".debt-input-field" data_skip_ajax="true" %}
{% money_input_field name="debt_monthly_amount" value=debt_monthly_amount multiple='true' class="fact-sheet-input money positive-float debt-input-field" placeholder="" data_save_row="true" data_save_select=".debt-input-field" data_skip_ajax="true" %}
</div> </div>
</td> </td>
{% if not exclude_delete_button %} {% if not exclude_delete_button %}


+ 1
- 1
edivorce/apps/core/templates/partials/fact_sheet_expense.html View File

@ -4,7 +4,7 @@
</td> </td>
<td class="fact-sheet-answer table-bordered"> <td class="fact-sheet-answer table-bordered">
<div class="dollar-prefix"> <div class="dollar-prefix">
{% money_input_field name="expense_amount" value=expense_amount multiple='true' class="money positive-integer fact-sheet-input expense-input-field" placeholder="" data_save_row="true" data_save_select=".expense-input-field" data_skip_ajax="true" %}
{% money_input_field name="expense_amount" value=expense_amount multiple='true' class="money positive-float fact-sheet-input expense-input-field" placeholder="" data_save_row="true" data_save_select=".expense-input-field" data_skip_ajax="true" %}
</div> </div>
</td> </td>
{% if not exclude_delete_button %} {% if not exclude_delete_button %}


+ 1
- 1
edivorce/apps/core/templates/partials/fact_sheet_income_others.html View File

@ -4,7 +4,7 @@
</td> </td>
<td class="fact-sheet-answer table-bordered"> <td class="fact-sheet-answer table-bordered">
<div class="dollar-prefix"> <div class="dollar-prefix">
{% money_input_field name="income_others_amount" value=income_others_amount class="money positive-integer fact-sheet-input income-others-input-field income-amount-input-field" step="1" data_sum="true" data_sum_class="income-amount-input-field" data_sum_target_id="total_income_others" placeholder="" data_save_row="true" data_save_select=".income-others-input-field" data_skip_ajax="true" %}
{% money_input_field name="income_others_amount" value=income_others_amount class="money positive-float fact-sheet-input income-others-input-field income-amount-input-field" step="1" data_sum="true" data_sum_class="income-amount-input-field" data_sum_target_id="total_income_others" placeholder="" data_save_row="true" data_save_select=".income-others-input-field" data_skip_ajax="true" %}
</div> </div>
</td> </td>


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

@ -253,7 +253,7 @@
<a href="http://laws-lois.justice.gc.ca/eng/regulations/SOR-97-175/page-5.html#h-9" target="_blank">Schedule 1</a> <a href="http://laws-lois.justice.gc.ca/eng/regulations/SOR-97-175/page-5.html#h-9" target="_blank">Schedule 1</a>
of the guidelines) that is payable by claimant?</h3> of the guidelines) that is payable by claimant?</h3>
<div class="dollar-prefix"> <div class="dollar-prefix">
{% money_input_field name="payor_monthly_child_support_amount" class="money positive-integer form-block response-textbox children-input-block" data_mirror="true" data_mirror_target="#child_support_amount_label" %}
{% money_input_field name="payor_monthly_child_support_amount" class="money positive-float form-block response-textbox children-input-block" data_mirror="true" data_mirror_target="#child_support_amount_label" %}
</div> </div>
<div class="collapse-trigger collapsed" data-toggle="collapse" aria-expanded="false" data-target="#collapse_determine_payor_amount" aria-controls="collapse_determine_payor_amount"> <div class="collapse-trigger collapsed" data-toggle="collapse" aria-expanded="false" data-target="#collapse_determine_payor_amount" aria-controls="collapse_determine_payor_amount">


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

@ -60,7 +60,7 @@
<div class="question-well" id="arrears_amount_question" hidden> <div class="question-well" id="arrears_amount_question" hidden>
<h3>What is the amount as of today's date?</h3> <h3>What is the amount as of today's date?</h3>
<div class="dollar-prefix"> <div class="dollar-prefix">
{% money_input_field name="child_support_arrears_amount" class="money positive-integer form-control input-narrow" min="0" %}
{% money_input_field name="child_support_arrears_amount" class="money positive-float form-control input-narrow" min="0" %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}


Loading…
Cancel
Save