Browse Source

DIV:531 - sub menu navigation in place along with first question in what for page

pull/160/head
Benard Ebinu 8 years ago
parent
commit
e9dc26bdd5
7 changed files with 182 additions and 5 deletions
  1. +1
    -1
      edivorce/apps/core/templates/overview.html
  2. +18
    -2
      edivorce/apps/core/templates/partials/progress.html
  3. +147
    -0
      edivorce/apps/core/templates/question/06_children_what_for.html
  4. +0
    -0
      edivorce/apps/core/templates/question/06_children_your_children.html
  5. +1
    -0
      edivorce/apps/core/urls.py
  6. +5
    -2
      edivorce/apps/core/views/main.py
  7. +10
    -0
      edivorce/fixtures/Question.json

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

@ -48,7 +48,7 @@
{% elif step_status.your_separation == 'Complete' %}<span class="progress-status"><i class="fa fa-check" aria-hidden="true"></i> Completed</span> {% endif %}
</a>
<a href="{% url 'question_steps' 'children' %}" class="progress-question {% if step_status.your_children == 'Complete' %} complete {% endif %}">
<a href="{% url 'question_steps' 'children' 'your_children'%}" class="progress-question {% if step_status.your_children == 'Complete' %} complete {% endif %}">
<span class="progress-icon"><i class="fa fa-users" aria-hidden="true"></i></span>
<span class="progress-content"><small>Step 6</small><br />Your children</span>
{% if step_status.your_children == 'Started' %}<span class="progress-status"><i class="fa fa-adjust" aria-hidden="true"></i> Started</span>


+ 18
- 2
edivorce/apps/core/templates/partials/progress.html View File

@ -39,12 +39,28 @@
{% if step_status.your_separation == 'Started' %}<span class="progress-status"><i class="fa fa-adjust" aria-hidden="true"></i></span>
{% elif step_status.your_separation == 'Complete' %}<span class="progress-status"><i class="fa fa-check" aria-hidden="true"></i></span> {% endif %}
</a>
<a href="{% url 'question_steps' 'children' %}" class="progress-question {% if step_status.your_children == 'Complete' %} complete {% endif %} {% if active_page == 'children' %} active {% endif %}">
<div class="progress-question collapse-trigger {% if step_status.your_children == 'Complete' %} complete {% endif %} {% if active_page == 'children' %} active {% endif %}"
data-toggle="collapse" aria-expanded="false" data-target="#children_nav" aria-controls="children_nav">
<span class="progress-icon"><i class="fa fa-users" aria-hidden="true"></i></span>
<span class="progress-content"><small>Step 6</small><br />Your children</span>
{% if step_status.your_children == 'Started' %}<span class="progress-status"><i class="fa fa-adjust" aria-hidden="true"></i></span>
{% elif step_status.your_children == 'Complete' %}<span class="progress-status"><i class="fa fa-check" aria-hidden="true"></i></span> {% endif %}
</a>
</div>
<ul class="collapse {% if active_page == 'children' %} in {% endif %}" id="children_nav">
<li>
<a href="{% url 'question_steps' 'children' 'your_children'%}" class="progress-question {% if sub_step == 'your_children' %} active {% endif %}">
<span class="progress-content">Your children</span>
</a>
</li>
<li>
<a href="{% url 'question_steps' 'children' 'what_for'%}" class="progress-question {% if sub_step == 'what_for' %} active {% endif %}">
<span class="progress-content">What are you asking for</span>
</a>
</li>
</ul>
{% if 'Spousal support' in want_which_orders|load_json or 'Spousal support' in which_orders.0.value|load_json %}
<a href="{% url 'question_steps' 'support' %}" class="progress-question {% if step_status.spousal_support == 'Complete' %} complete {% endif %} {% if active_page == 'support' %} active {% endif %}">
<span class="progress-icon"><i class="fa fa-life-ring" aria-hidden="true"></i></span>


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

@ -0,0 +1,147 @@
{% extends 'base.html' %}
{% load input_field %}
{% load step_order %}
{% block title %}{{ block.super }}: Your Children {% endblock %}
{% block progress %}{% include "partials/progress.html" %}{% endblock %}
{% block content %}
<h1><small>Step {% step_order step="children" %}:</small>Children - What are you asking for</h1>
<div class="question-well">
<h3>Do you have a separation agreement that sets out what you've agreed to around parenting and child support?</h3>
<div class="btn-radio-group" data-toggle="buttons">
<label class="btn btn-radio">
{% input_field type="radio" name="have_separation_agreement" autocomplete="off" value="YES" data_target_id="separation_agreement" data_reveal_target="true" %} Yes
</label>
<label class="btn btn-radio">
{% input_field type="radio" name="have_separation_agreement" autocomplete="off" value="NO" data_target_id="separation_agreement" data_reveal_target="false" %} No
</label>
</div>
<div class="collapse-trigger collapsed" data-toggle="collapse" aria-expanded="false" data-target="#collapse_separation_agreement" aria-controls="collapse_separation_agreement">
<div>
Need more information on what is a separation agreement and when it is needed?
</div>
</div>
<div class="collapse" id="collapse_separation_agreement">
<div>
<p>
A document that sets out how you and your spouse have agreed to deal with matters like parenting
support and property after you separate (Provincial family law calls it an agreement). There's
no official form to use for drafting up a separation agreement.
</p>
<p>
If you wish to file your separation agreement the parts of the agreement that deal with
parenting and support can be enforced as if they were in a court order. More information on
<a href="http://www.familylaw.lss.bc.ca/guides/mini/fileAgreementSC.php" target="_blank">
how to file your agreement
</a>
can be found on the Family Law website.
</p>
</div>
</div>
<div class="information-message bg-danger" id="separation_agreement" hidden>
<p><strong>Have a separation agreement?</strong></p>
<p>
If you have a separation agreement you will need to attach the separation agreement as an
<span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true"
title="
<b>Exhibit Definition</b>
<p>A document, record, or object admitted as evidence in court or before a tribunal. A document
attached to and made part of an affidavit.</p>
">
exhibit<i class="fa fa-question-circle" aria-hidden="true"></i>
</span>
to the Child Support Affidavit Form (F37).
</p>
<p>
How to file a separation agreement in order for it to be treated as a
<span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true"
title="
<b>Court Order Definition</b>
<p>A record of a decision made by a judge or master that tells you or your
spouse what you must do (or not do). For example: The court has made an
order that your spouse must pay you $900 on a monthly basis to help cover
the costs of supporting the children. </p>
">
court order<i class="fa fa-question-circle" aria-hidden="true"></i>
</span>
</p>
<p>
If you
<a href="http://www.familylaw.lss.bc.ca/guides/mini/fileAgreementSC.php" target="_blank">
wish to file your separation agreement
</a>, the parts of the agreement that deal
with parenting and support can be
<span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true"
title="
<b>Enforceable Definition</b>
<p>Enforcing an order means making sure that what the court ordered is done,
or executed. Usually you want to collect money that is owing to you.</p>
">
enforced<i class="fa fa-question-circle" aria-hidden="true"></i>
</span> as if they were in a court order. You will
need to fill out a requisition (Form
<a href="http://www2.gov.bc.ca/assets/gov/law-crime-and-justice/courthouse-services/court-files-records/court-forms/supreme-family/f17_1.pdf?forcedownload=true" target="_blank">F17.1</a>
or
<a href="http://www2.gov.bc.ca/assets/gov/law-crime-and-justice/courthouse-services/court-files-records/court-forms/supreme-family/f17_2.pdf?forcedownload=true" target="_blank">F17.2</a> )
and pay a $30 filing fee. The requisition is a request to file the agreement. When you fill out the requisition,
you'll be the claimant, and the other party will be the respondent. These labels are
used even if you're filing the agreement with no plans to start a court application.
</p>
</div>
</div>
{% endblock content %}
{% block formBack %}{% prev_step step='children' %}{% endblock %}
{% block formNext %}{% next_step step='children' %}{% endblock %}
{% block sidebarText %}
<p><strong>What does the law mean by “best interests of the child”?</strong></p>
<p>
The “best interests of the child” is a legal test used to decide what would best
protect your child’s physical, psychological, and emotional safety, security and
well-being. To determine what is in the child’s best interests when making parenting
arrangements, you must consider factors including:
</p>
<ul>
<li>The child’s emotional health and well-being</li>
<li>The child’s views, unless it would be inappropriate to consider them</li>
<li>The child’s relationships with parents, guardians, and other important people</li>
<li>The history of care, and</li>
<li>The impact of any family violence</li>
</ul>
<p>
When you make an agreement about parenting arrangements after a separation, the law says
you must only consider the child’s best interests. And if you go to court, the judge can
only consider the child’s best interests in making parenting orders.. For more information
on the
<a href="http://www.familylaw.lss.bc.ca/resources/fact_sheets/bestInterestsOfChild.php" target="_blank">
best interests of the child
</a>
please refer to the Family Law in B.C. website.
</p>
<p><strong>The benefits of using both courts (Provincial Court, Supreme Court)</strong></p>
<p>
In some situations, you may find it best to use both courts. You could get most of your
orders in Provincial Court, and then just apply for your divorce order in Supreme Court.
(You could also choose to make an agreement about parenting, support, and property and
then just apply to the Supreme Court for a divorce.) This approach might save you money
and time, especially if you and your spouse agree on what should be done.
</p>
<p>
On the other hand, it could make things more complicated to have to deal with two
different courts. It can also be a problem if you ask more than one court to deal with
issues about parenting and support.
</p>
{% endblock %}

edivorce/apps/core/templates/question/06_children.html → edivorce/apps/core/templates/question/06_children_your_children.html View File


+ 1
- 0
edivorce/apps/core/urls.py View File

@ -27,6 +27,7 @@ urlpatterns = [
url(r'^pdf-form(?P<form_number>[0-9]{1,3}(_we|_claimant1|_claimant2)?)$', pdf.form, name="pdf_form"),
url(r'^prequalification/step_(?P<step>[0-9]{2})$', main.prequalification, name="prequalification"),
url(r'^question/(?P<step>.*)/(?P<sub_step>.*)/$', main.question, name="question_steps"),
url(r'^question/(?P<step>.*)$', main.question, name="question_steps"),
url(r'^current', system.current, name="current"),
url(r'^$', main.home, name="home"),


+ 5
- 2
edivorce/apps/core/views/main.py View File

@ -169,11 +169,12 @@ def dashboard_nav(request, nav_step):
@bceid_required
def question(request, step):
def question(request, step, sub_step=None):
"""
View for rendering main divorce questionaire questions
"""
template = 'question/%02d_%s.html' % (template_step_order[step], step)
sub_page_template = '_{}'.format(sub_step) if sub_step else ''
template = 'question/%02d_%s%s.html' % (template_step_order[step], step, sub_page_template)
responses_dict_by_step = get_responses_from_db_grouped_by_steps(request.user, True)
@ -190,6 +191,8 @@ def question(request, step):
if step == "location":
responses_dict['registries'] = sorted(list_of_registries)
responses_dict['sub_step'] = sub_step
return render(request, template_name=template, context=responses_dict)


+ 10
- 0
edivorce/fixtures/Question.json View File

@ -806,5 +806,15 @@
},
"model": "core.question",
"pk": "claimant_children"
},
{
"fields": {
"name": "Do you have a separation agreement that sets out what you've agreed to around parenting and child support?",
"description": "For Step 6, Your children - What are you asking for",
"summary_order": 0,
"required": "Required"
},
"model": "core.question",
"pk": "have_separation_agreement"
}
]

Loading…
Cancel
Save