-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: error templates for in-person enrollment #2382
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7c9a8b5
chore: add needed context to each error view function
angela-tran 6da2574
feat: introduce error base template, implement reenrollment error page
angela-tran 1ba5123
feat: implement user enrollment error page, aka the "retry" page
angela-tran 54c60d1
feat: implement system error page, send sentry notification
angela-tran 93535f1
feat: implement server error page, send sentry notification
angela-tran 8ef7dd1
chore: add missing docstrings for some in_person view functions
angela-tran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "admin/agency-base.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<div class="row justify-content-center"> | ||
<div class="col-lg-6"> | ||
<div class="border border-3 p-3"> | ||
<h2 class="p-0 m-0 text-left">In-person enrollment</h2> | ||
</div> | ||
<div class="border border-3 border-top-0 p-3 min-vh-60 d-flex flex-column justify-content-between"> | ||
<div class="d-flex"> | ||
<i class="error-icon"></i> | ||
<div class="mt-lg-3"> | ||
{% block error-message %} | ||
{% endblock error-message %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
{% block cta-buttons %} | ||
{% endblock cta-buttons %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends "error-base.html" %} | ||
|
||
{% block error-message %} | ||
<h3 class="fw-bold h4">This person is still enrolled in the {{ flow_label }} benefit.</h3> | ||
|
||
<p class="my-4"> | ||
<span class="fw-bold">This rider will enjoy a transit benefit until {{ enrollment.expires|date }}.</span> They can re-enroll for this benefit beginning on {{ enrollment.reenrollment|date }}. Please try again then. | ||
</p> | ||
{% endblock error-message %} | ||
|
||
{% block cta-buttons %} | ||
<div class="col-12"> | ||
{% url routes.ADMIN_INDEX as url_return_to_dashboard %} | ||
<a href="{{ url_return_to_dashboard }}" class="btn btn-lg btn-primary d-block">Return to dashboard</a> | ||
</div> | ||
{% endblock cta-buttons %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends "error-base.html" %} | ||
|
||
{% block error-message %} | ||
<h3 class="fw-bold h4">Card not found.</h3> | ||
|
||
<p class="my-4"> | ||
The card information may not have been entered correctly. Please check the details on your card and try again. | ||
</p> | ||
{% endblock error-message %} | ||
|
||
{% block cta-buttons %} | ||
<div class="col-6"> | ||
{% url routes.ADMIN_INDEX as url_cancel %} | ||
<a href="{{ url_cancel }}" class="btn btn-lg btn-outline-primary d-block">Cancel</a> | ||
</div> | ||
<div class="col-6"> | ||
{% url routes.IN_PERSON_ENROLLMENT as url_try_again %} | ||
<a href="{{ url_try_again }}" class="btn btn-lg btn-primary d-block">Try again</a> | ||
</div> | ||
{% endblock cta-buttons %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends "error-base.html" %} | ||
|
||
{% block error-message %} | ||
<h3 class="fw-bold h4">We're working to fix a problem.</h3> | ||
|
||
<p class="my-4"> | ||
There is a problem with the application configuration, but we're working to fix it. Please try again in a little while. | ||
</p> | ||
{% endblock error-message %} | ||
|
||
{% block cta-buttons %} | ||
<div class="col-12"> | ||
{% url routes.ADMIN_INDEX as url_return_to_dashboard %} | ||
<a href="{{ url_return_to_dashboard }}" class="btn btn-lg btn-primary d-block">Return to dashboard</a> | ||
</div> | ||
{% endblock cta-buttons %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "error-base.html" %} | ||
|
||
{% block error-message %} | ||
<h3 class="fw-bold h4">The enrollment system isn't working right now.</h3> | ||
|
||
<p class="my-4">Please wait 24 hours and try to enroll again.</p> | ||
{% endblock error-message %} | ||
|
||
{% block cta-buttons %} | ||
<div class="col-12"> | ||
{% url routes.ADMIN_INDEX as url_return_to_dashboard %} | ||
<a href="{{ url_return_to_dashboard }}" class="btn btn-lg btn-primary d-block">Return to dashboard</a> | ||
</div> | ||
{% endblock cta-buttons %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commenting on the line just below the line I'm talking about, since it isn't available for comment
Minor suggestion, now that an
in_person/templates/in_person/enrollment/
directory exists, maybe we should move thisenrollment.html
template in there asindex.html
.