-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: error templates for in-person enrollment (#2382)
- Loading branch information
Showing
9 changed files
with
154 additions
and
10 deletions.
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