Browse Source

Merge pull request #145 from bcgov/DIV-1023

DIV-1023: Better handling of eFiling hub and checking if files have been submitted
pull/172/head
Arianne 5 years ago
committed by GitHub
parent
commit
41732f02b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 22 additions and 16 deletions
  1. +7
    -5
      edivorce/apps/core/efilinghub.py
  2. +3
    -3
      edivorce/apps/core/templates/dashboard/final_filing.html
  3. +3
    -3
      edivorce/apps/core/templates/dashboard/initial_filing.html
  4. +2
    -2
      edivorce/apps/core/templates/dashboard/next_steps.html
  5. +1
    -1
      edivorce/apps/core/templates/dashboard/wait_for_number.html
  6. +1
    -1
      edivorce/apps/core/utils/cso_filing.py
  7. +2
    -0
      edivorce/apps/core/views/efiling.py
  8. +2
    -0
      edivorce/apps/core/views/main.py
  9. +1
    -1
      edivorce/settings/local.py

+ 7
- 5
edivorce/apps/core/efilinghub.py View File

@ -230,16 +230,18 @@ class EFilingHub:
if parties:
package['filingPackage']['parties'] = parties
# update return urls
package['navigationUrls']['error'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['check_with_registry']))
if self.initial_filing:
package['navigationUrls']['cancel'] = self._get_absolute_url(
package['navigationUrls']['error'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['initial_filing']))
package['navigationUrls']['cancel'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['initial_filing'])) + '?cancelled=1'
package['navigationUrls']['success'] = self._get_absolute_url(
request, reverse('after_submit_initial_files'))
else:
package['navigationUrls']['cancel'] = self._get_absolute_url(
package['navigationUrls']['error'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['final_filing']))
package['navigationUrls']['cancel'] = self._get_absolute_url(
request, reverse('dashboard_nav', args=['final_filing'])) + '?cancelled=1'
package['navigationUrls']['success'] = self._get_absolute_url(
request, reverse('after_submit_final_files'))
@ -368,7 +370,7 @@ class EFilingHub:
if settings.PROXY_BASE_URL:
return settings.PROXY_BASE_URL + path
else:
return request.build_absolute_uri(path)
return request.build_absolute_uri(path)
# -- EFILING HUB INTERFACE --
def get_files(self, request, responses, uploaded, generated):


+ 3
- 3
edivorce/apps/core/templates/dashboard/final_filing.html View File

@ -10,7 +10,7 @@
{% block content %}
<h1>Final Filing</h1>
{% if final_filing_submitted %}
{% if final_filing_submitted == 'True' %}
<div>
<p>
You have already completed this step.
@ -262,7 +262,7 @@
hello
{% endif %}
{% endif %}
{% if not final_filing_submitted and how_to_file == 'Online' %}
{% if final_filing_submitted != 'True' and how_to_file == 'Online' %}
<h3>Filing with Court Services Online</h3>
<p>When you click Submit Documents, you will be taken to the Court Services Online e-filing hub.
In the next few steps you will be able to do a final review of your filed documentation,
@ -279,7 +279,7 @@
{% block formbuttons %}
<div class="form-buttons clearfix">
<a class="btn btn-primary" href="{% url 'dashboard_nav' 'swear_forms' %}"><i class="fa fa-arrow-circle-o-left"></i>&nbsp;&nbsp;&nbsp;Back</a>
{% if how_to_file == 'Online' and not final_filing_submitted %}
{% if how_to_file == 'Online' and final_filing_submitted != 'True'%}
<a class="btn btn-success pull-right save-spinner" href="{% url 'submit_final_files' %}" id="submitDocuments">
<i class="fa fa-paper-plane"></i>&nbsp;&nbsp;&nbsp;
Submit Documents</a>


+ 3
- 3
edivorce/apps/core/templates/dashboard/initial_filing.html View File

@ -9,7 +9,7 @@
{% block content %}
<h1>Initial Filing</h1>
{% if initial_filing_submitted %}
{% if initial_filing_submitted == 'True' %}
<p>
You have already completed this step.
</p>
@ -94,7 +94,7 @@
<h3>Filing with Court Services Online</h3>
<p>
When you click Next, you will be taken to the Court Services Online e-filing hub.
When you click Submit Documents, you will be taken to the Court Services Online e-filing hub.
In the next few steps you will be able to do a final review of the documents you are submitting for filing,
pay for your filing and (if completed successfully) receive a Package Number.
</p>
@ -125,7 +125,7 @@
{% block formbuttons %}
<div class="form-buttons clearfix">
<a class="btn btn-primary" href="{% url 'dashboard_nav' 'print_form' %}"><i class="fa fa-arrow-circle-o-left"></i>&nbsp;&nbsp;&nbsp;Back</a>
{% if initial_filing_submitted %}
{% if initial_filing_submitted == 'True' %}
<a class="btn btn-success pull-right" href="{% url 'dashboard_nav' 'wait_for_number' %}">Next&nbsp;&nbsp;&nbsp;<i
class="fa fa-arrow-circle-o-right"></i></a>
{% elif how_to_file == 'Online' %}


+ 2
- 2
edivorce/apps/core/templates/dashboard/next_steps.html View File

@ -9,7 +9,7 @@
{% block content %}
<h1>Filing Completed</h1>
{% if how_to_file == 'Online' %}
{% if final_filing_submitted %}
{% if final_filing_submitted == 'True' %}
<p>
You have successfully completed filing online.
</p>
@ -31,7 +31,7 @@
This e-mail will include a {% include "partials/tooltips/court_file_number.html" %}, please keep this number for your records and use it
if filing any additional documents.
</p>
{% if final_filing_submitted %}
{% if final_filing_submitted == 'True' %}
<div class="question-well">
<h3>Filing Status</h3>
<p>


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

@ -7,7 +7,7 @@
{% block container_col %}dashboard-content{% endblock %}
{% block content %}
<h1>Wait for Court File Number</h1>
{% if initial_filing_submitted %}
{% if initial_filing_submitted == 'True' %}
<p>
You’ve successfully completed your initial filing with the Court Registry.
</p>


+ 1
- 1
edivorce/apps/core/utils/cso_filing.py View File

@ -53,7 +53,7 @@ def after_file_documents(request, initial=False):
# Save dummy data for now. Eventually replace with data from CSO
prefix = 'initial' if initial else 'final'
_save_response(user, f'{prefix}_filing_submitted', True)
_save_response(user, f'{prefix}_filing_submitted', 'True')
if not initial:
_save_response(user, f'final_filing_status', 'Submitted')


+ 2
- 0
edivorce/apps/core/views/efiling.py View File

@ -37,6 +37,8 @@ def _submit_files(request, initial=False):
if errors:
next_page = original_step
if not isinstance(errors, list):
errors = [errors]
for error in errors:
messages.add_message(request, messages.ERROR, error)


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

@ -191,6 +191,8 @@ def _add_error_messages(nav_step, request, responses_dict):
'The connection to the BC Government’s eFiling Hub is currently not working. '
'This is a temporary problem. '
'Please try again now and if this issue persists try again later.')
elif request.GET.get('message'):
messages.add_message(request, messages.ERROR, request.GET.get('message'))
@login_required


+ 1
- 1
edivorce/settings/local.py View File

@ -50,4 +50,4 @@ KEYCLOAK_LOGOUT = 'http://localhost:8081/auth/realms/justice/protocol/openid-con
OIDC_RP_CLIENT_ID = 'edivorce-app'
LOGIN_REDIRECT_URL = '/signin'
EFILING_HUB_ENABLED = True
EFILING_HUB_ENABLED = False

Loading…
Cancel
Save