Browse Source

DIV-778: placeholders and spinners for fact sheet input fields

pull/160/head
Benard Ebinu 7 years ago
parent
commit
6ffea1b455
4 changed files with 17 additions and 16 deletions
  1. +2
    -2
      edivorce/apps/core/static/css/main.css
  2. +2
    -1
      edivorce/apps/core/static/css/main.scss
  3. +5
    -5
      edivorce/apps/core/templates/partials/fact_sheet_f_table.html
  4. +8
    -8
      edivorce/apps/core/templates/question/06_children_facts.html

+ 2
- 2
edivorce/apps/core/static/css/main.css
File diff suppressed because it is too large
View File


+ 2
- 1
edivorce/apps/core/static/css/main.scss View File

@ -133,11 +133,12 @@ input[type='text'] {
}
/* For Firefox */
input[type='number'] {
input[type=number] {
-moz-appearance:textfield;
&.number-spinner {
-moz-appearance: spinner;
text-align: right;
}
}


+ 5
- 5
edivorce/apps/core/templates/partials/fact_sheet_f_table.html View File

@ -14,7 +14,7 @@
How many child(ren) are you asking for support?
</td>
<td class="fact-sheet-answer">
{% input_field type="number" name="number_children_seeking_support_"|add:claimant_id class="fact-sheet-input" %}
{% input_field type="number" name="number_children_seeking_support_"|add:claimant_id class="fact-sheet-input number-spinner" placeholder="enter number " %}
</td>
</tr>
<tr>
@ -28,7 +28,7 @@
</td>
<td class="fact-sheet-answer">
<div class="dollar-prefix">
{% money_input_field name="child_support_amount_under_high_income_"|add:claimant_id class="fact-sheet-input money guideline-amount-"|add:claimant_id data_sum="true" data_sum_class="guideline-amount-"|add:claimant_id data_sum_target_id="total_amount_"|add:claimant_id %}
{% money_input_field name="child_support_amount_under_high_income_"|add:claimant_id class="fact-sheet-input money guideline-amount-"|add:claimant_id data_sum="true" data_sum_class="guideline-amount-"|add:claimant_id data_sum_target_id="total_amount_"|add:claimant_id placeholder="enter amount "%}
</div>
</td>
</tr>
@ -40,8 +40,8 @@
</td>
<td class="fact-sheet-answer">
<div class="percent-suffix">
{% input_field type="number" name="percent_income_over_high_income_limit_"|add:claimant_id class="fact-sheet-input" %}
<label>%</label>
{% input_field type="number" name="percent_income_over_high_income_limit_"|add:claimant_id class="fact-sheet-input" placeholder="enter percentage "%}
<label> %</label>
</div>
</td>
</tr>
@ -90,7 +90,7 @@
</td>
<td class="fact-sheet-answer">
<div class="dollar-prefix">
{% money_input_field name="amount_income_over_high_income_limit_"|add:claimant_id class="fact-sheet-input money guideline-amount-"|add:claimant_id data_sum="true" data_sum_class="guideline-amount-"|add:claimant_id data_sum_target_id="total_amount_"|add:claimant_id data_mirror="true" data_mirror_target="#agreed_child_support_amount_"|add:claimant_id data_mirror_broadcast_change="true"%}
{% money_input_field name="amount_income_over_high_income_limit_"|add:claimant_id class="fact-sheet-input money guideline-amount-"|add:claimant_id data_sum="true" data_sum_class="guideline-amount-"|add:claimant_id data_sum_target_id="total_amount_"|add:claimant_id data_mirror="true" data_mirror_target="#agreed_child_support_amount_"|add:claimant_id data_mirror_broadcast_change="true" placeholder="enter amount "%}
</div>
</td>
</tr>


+ 8
- 8
edivorce/apps/core/templates/question/06_children_facts.html View File

@ -54,14 +54,14 @@
</td>
<td class="fact-sheet-answer">
<div class="percent-suffix">
{% input_field type="number" name="time_spent_with_you" class="fact-sheet-input" min="0" %}
<label>%</label>
{% input_field type="number" name="time_spent_with_you" class="fact-sheet-input" min="0" placeholder="enter number" %}
<label> %</label>
</div>
</td>
<td class="fact-sheet-answer">
<div class="percent-suffix">
{% input_field type="number" name="time_spent_with_spouse" class="fact-sheet-input" min="0" %}
<label>%</label>
{% input_field type="number" name="time_spent_with_spouse" class="fact-sheet-input" min="0" placeholder="enter number" %}
<label> %</label>
</div>
</td>
</tr>
@ -127,12 +127,12 @@
</td>
<td class="fact-sheet-answer">
<div class="dollar-prefix">
{% money_input_field id="fact_b_your_child_support_paid" name="your_child_support_paid" class="fact-sheet-input claimants-child-support-amounts" data_calc_delta="true" data_delta_term_selector=".claimants-child-support-amounts" data_delta_target_selector="input[name=difference_between_claimants]" data_mirror="true" data_mirror_target="#fact_c_your_child_support_paid" %}
{% money_input_field id="fact_b_your_child_support_paid" name="your_child_support_paid" class="fact-sheet-input claimants-child-support-amounts" data_calc_delta="true" data_delta_term_selector=".claimants-child-support-amounts" data_delta_target_selector="input[name=difference_between_claimants]" data_mirror="true" data_mirror_target="#fact_c_your_child_support_paid" placeholder="enter amount" %}
</div>
</td>
<td class="fact-sheet-answer">
<div class="dollar-prefix">
{% money_input_field id="fact_b_your_spouse_child_support_paid" name="your_spouse_child_support_paid" class="fact-sheet-input claimants-child-support-amounts" data_calc_delta="true" data_delta_term_selector=".claimants-child-support-amounts" data_delta_target_selector="input[name=difference_between_claimants]" data_mirror="true" data_mirror_target="#fact_c_your_spouse_child_support_paid" %}
{% money_input_field id="fact_b_your_spouse_child_support_paid" name="your_spouse_child_support_paid" class="fact-sheet-input claimants-child-support-amounts" data_calc_delta="true" data_delta_term_selector=".claimants-child-support-amounts" data_delta_target_selector="input[name=difference_between_claimants]" data_mirror="true" data_mirror_target="#fact_c_your_spouse_child_support_paid" placeholder="enter amount" %}
</div>
</td>
</tr>
@ -270,7 +270,7 @@
How many children spend more than <strong>60 percent of their time</strong> with you and for whom you are asking for support?
</td>
<td class="fact-sheet-answer table-bordered">
{% input_field type="number" name="number_of_children_claimant" class="positive-integer fact-sheet-input number-spinner" min="0"%}
{% input_field type="number" name="number_of_children_claimant" class="positive-integer fact-sheet-input number-spinner" min="0" placeholder="enter number" %}
</td>
</tr>
<tr>
@ -324,7 +324,7 @@
How many children spend more than <strong>60 percent of their time</strong> with your spouse and for whom you are obliged to pay support?
</td>
<td class="fact-sheet-answer table-bordered">
{% input_field type="number" name="number_of_children_claimant_spouse" class="positive-integer fact-sheet-input" %}
{% input_field type="number" name="number_of_children_claimant_spouse" class="positive-integer fact-sheet-input number-spinner" min="0" placeholder="enter number"%}
</td>
</tr>
<tr>


Loading…
Cancel
Save