-
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: CalFresh re-enrollment error (#1992)
- Loading branch information
Showing
11 changed files
with
167 additions
and
12 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
benefits/core/migrations/0009_eligibilitytype_reenrollment_error_template.py
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,18 @@ | ||
# Generated by Django 5.0.3 on 2024-05-01 19:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0008_eligibilityverifier_unverified_template"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="eligibilitytype", | ||
name="reenrollment_error_template", | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
] |
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
10 changes: 10 additions & 0 deletions
10
benefits/enrollment/templates/enrollment/reenrollment-error--calfresh.html
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,10 @@ | ||
{% extends "enrollment/reenrollment-error-base.html" %} | ||
{% load i18n %} | ||
|
||
{% block error-message %} | ||
<p> | ||
{% translate "Your CalFresh Cardholder transit benefit does not expire until" %} {{ enrollment.expires|date }}. | ||
{% translate "You can re-enroll for this benefit beginning on" %} {{ enrollment.reenrollment|date }}. | ||
{% translate "Please try again then." %} | ||
</p> | ||
{% endblock error-message %} |
31 changes: 31 additions & 0 deletions
31
benefits/enrollment/templates/enrollment/reenrollment-error-base.html
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,31 @@ | ||
{% extends "core/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block page-title %} | ||
{% translate "Enrollment error" %} | ||
{% endblock page-title %} | ||
|
||
{% block main-content %} | ||
{% if authentication and authentication.sign_out_link_template %} | ||
{% include authentication.sign_out_link_template %} | ||
{% endif %} | ||
|
||
<div class="container"> | ||
<h1 class="h2 text-center"> | ||
<span class="icon d-block pb-5">{% include "core/includes/icon.html" with name="calendarcheck" %}</span> | ||
{% translate "You are still enrolled in this benefit" %} | ||
</h1> | ||
|
||
<div class="row justify-content-center"> | ||
<div class="col-lg-8 pt-4"> | ||
{% block error-message %} | ||
{% endblock error-message %} | ||
</div> | ||
</div> | ||
|
||
<div class="row pt-8 justify-content-center"> | ||
<div class="col-lg-3 col-8">{% include "core/includes/button--index.html" %}</div> | ||
</div> | ||
|
||
</div> | ||
{% endblock main-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
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
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
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