-
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 enrollment index (#1968)
- Loading branch information
Showing
14 changed files
with
285 additions
and
118 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
benefits/core/migrations/0007_eligibilitytype_enrollment_index_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-03-25 22:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0006_alter_allow_blank"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="eligibilitytype", | ||
name="enrollment_index_template", | ||
field=models.TextField(default="enrollment/index.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% block alert-wrapper %} | ||
<div class="alert-box border-start p-3 text-body {{ alert_class }}"> | ||
{% block alert-heading-wrapper %} | ||
<{{ heading_tag|default:"h3" }} class="alert-box--heading lh-base ls-base mb-1"> | ||
{% block alert-heading %} | ||
{% endblock alert-heading %} | ||
</{{ heading_tag|default:"h3" }}> | ||
{% endblock alert-heading-wrapper %} | ||
{% block alert-body %} | ||
{% endblock alert-body %} | ||
</div> | ||
{% endblock alert-wrapper %} |
19 changes: 19 additions & 0 deletions
19
benefits/enrollment/templates/enrollment/includes/alert-box--warning--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,19 @@ | ||
{% extends "core/includes/alert-box.html" %} | ||
{% load i18n %} | ||
|
||
{% block alert-wrapper %} | ||
{% with alert_class="alert-box--warning media-list-icon-left-margin" %}{{ block.super }}{% endwith %} | ||
{% endblock alert-wrapper %} | ||
|
||
{% block alert-heading %} | ||
{% translate "Do not enter information from your EBT card." %} | ||
{% endblock alert-heading %} | ||
|
||
{% block alert-body %} | ||
{% translate "Read our guidance on the CalFresh benefit" as calfresh_modal_link %} | ||
<p> | ||
{% translate "You can’t pay for transit using the CalFresh funds on your Golden State Advantage card. Please provide details from your contactless debit or credit card issued by Visa or Mastercard and use that card to pay for transit." %} | ||
{% include "core/includes/modal-trigger.html" with modal="modal--calfresh" text=calfresh_modal_link period=True %} | ||
</p> | ||
{% include "eligibility/includes/modal--calfresh.html" with id="modal--calfresh" size="modal-lg" header="p-md-2 p-3" body="pb-md-3 mb-md-3 mx-md-3 py-0 pt-0 absolute-top" %} | ||
{% endblock alert-body %} |
22 changes: 22 additions & 0 deletions
22
.../enrollment/templates/enrollment/includes/media-item--bankcardcheck--index--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,22 @@ | ||
{% extends "core/includes/media-item.html" %} | ||
{% load i18n %} | ||
|
||
{% block icon %} | ||
{% include "core/includes/icon.html" with name="bankcardcheck" %} | ||
{% endblock icon %} | ||
|
||
{% block heading %} | ||
{% translate "The next step is to connect your contactless card to your transit benefit" %} | ||
{% endblock heading %} | ||
|
||
{% block body %} | ||
<div class="media-body--details"> | ||
<p> | ||
{% translate "You will be directed to our payment partner, " %} | ||
{% include "core/includes/modal-trigger.html" with modal="modal--littlepay" text="Littlepay" period=True %} | ||
{% translate "We don’t store your information, and you won’t be charged." %} | ||
</p> | ||
</div> | ||
|
||
{% include "enrollment/includes/modal--littlepay.html" with id="modal--littlepay" size="modal-md" header="p-md-2 p-3" body="pb-md-3 mb-md-3 mx-md-3 py-0 pt-0 absolute-top" %} | ||
{% endblock body %} |
14 changes: 14 additions & 0 deletions
14
benefits/enrollment/templates/enrollment/index--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,14 @@ | ||
{% extends "enrollment/index.html" %} | ||
{% load i18n %} | ||
|
||
{% block media-items %} | ||
<div class="col-12 col-sm-12 col-lg-8"> | ||
<ul class="media-list mb-5 mx-0 px-0 d-flex justify-content-center flex-column"> | ||
{% include "enrollment/includes/media-item--bankcardcheck--index--calfresh.html" %} | ||
</ul> | ||
</div> | ||
{% endblock media-items %} | ||
|
||
{% block additional-info %} | ||
<div class="col-12 col-sm-12 col-lg-8">{% include "enrollment/includes/alert-box--warning--calfresh.html" %}</div> | ||
{% endblock additional-info %} |
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
Oops, something went wrong.