Skip to content
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

Refactor: reCAPTCHA copy + redesign #2572

Merged
merged 114 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
e2163eb
refactor: remove icons from showing up in media items
angela-tran Dec 4, 2024
4181328
refactor: remove bankcardcheck icon and now unused icon blocks
angela-tran Dec 4, 2024
a79563f
refactor: remove idcardcheck icon and now unused icon blocks
angela-tran Dec 4, 2024
d52b343
refactor: rename template filenames that contained `bankcardcheck`
angela-tran Dec 5, 2024
c3f63cc
refactor: rename template filenames that contained `idcardcheck`
angela-tran Dec 5, 2024
ea9f790
Refactor(reCAPTCHA): remove icons (#2564)
angela-tran Dec 5, 2024
0ed1e18
feat(recaptcha): all H1s are now left-aligned on desktop and mobile
machikoyasuda Dec 5, 2024
a10e1ac
feat(recaptcha): convert elig page to all col-lg-6
machikoyasuda Dec 5, 2024
eb69d78
feat(recaptcha): eligibility - remove 64px margin from all agency ind…
machikoyasuda Dec 5, 2024
d844dec
refactor(css): use class to position, instead of declaring styles
machikoyasuda Dec 5, 2024
e945960
refactor(css): use gap-4 (24px), gap-md-3 (16px); bump up 15px to 16px
machikoyasuda Dec 5, 2024
1342b24
refactor: remove unused css class
machikoyasuda Dec 6, 2024
2ed9222
reCAPTCHA: Eligibility index page - Align page and refactor (#2570)
machikoyasuda Dec 6, 2024
9f61a3e
feat(elig-start): recaptcha - first pass @ col-lg-6 for text and button
machikoyasuda Dec 5, 2024
bf2825a
refactor: eliminate unnecessary div
machikoyasuda Dec 5, 2024
4d0a733
feat(elig-start): widen cta, narrow text for all eligibility start op…
machikoyasuda Dec 5, 2024
207b849
feat(elig-start): widen cta, narrow text for agency card
machikoyasuda Dec 5, 2024
64c3c31
refactor: an attempt to refactor media-item css
machikoyasuda Dec 6, 2024
00f3f38
fix(css): create list-disc class instead
machikoyasuda Dec 6, 2024
6e16a2e
refactor(media-item): delete unnecessary classes, divs in media-item
machikoyasuda Dec 6, 2024
b2b91f1
refactor(elig-start): remove unnecessary class, div from all id media…
machikoyasuda Dec 6, 2024
f41cb98
feat(css): first pass @ get started with login.gov button
machikoyasuda Dec 6, 2024
e27350b
refactor(media-item): remove unused header-wrapper, media-body div/class
machikoyasuda Dec 6, 2024
ed39e8c
fix(css): update h2-sm-p comment
machikoyasuda Dec 6, 2024
00cc296
fix(enrollment-index-calfresh): add list-unstyled, remove media-item …
machikoyasuda Dec 6, 2024
c90f30c
reCAPTCHA: Eligibility Start (#2573)
machikoyasuda Dec 9, 2024
2b50e4b
feat(enrollment-success): widen header to 9, to match content
machikoyasuda Dec 6, 2024
31722ca
feat(logged-out): update logged out page with new spacing
machikoyasuda Dec 6, 2024
45351bd
feat(enrollment-success): don't forget cta log out sentence
machikoyasuda Dec 6, 2024
9059962
refactor: reduce divitis on enrollment-success
machikoyasuda Dec 6, 2024
32d41d4
feat(copy): remove <br> from headings
machikoyasuda Dec 6, 2024
f2ca459
feat(enrollment-index): use col-lg-6 for heading, content and set bas…
machikoyasuda Dec 6, 2024
2eb8197
feat(enrollment-index-calfresh): realign calfresh enrollment index, r…
machikoyasuda Dec 6, 2024
d559c19
fix(enrollment-index-agency-card): remove large padding bottom
machikoyasuda Dec 6, 2024
e187a60
refactor(media-item): rename media-item to info, remove unnecessary u…
machikoyasuda Dec 6, 2024
56b9322
refactor(media-item): remove template entirely, render content direct…
machikoyasuda Dec 9, 2024
aab7c0c
reCAPTCHA: Enrollment index (#2575)
machikoyasuda Dec 10, 2024
30edfda
refactor(elig-start): use call-to-action-button for block, not the pa…
machikoyasuda Dec 10, 2024
0a5f154
refactor(eligibility-item): rename media-item template to eligibility…
machikoyasuda Dec 10, 2024
ff88efa
refactor(elig-item): rename all files from media-item to eligibility-…
machikoyasuda Dec 10, 2024
cf11c04
refactor(elig-start): add h1 styling to start.html
machikoyasuda Dec 10, 2024
279fc00
fix(logged-out): fix padding from top
machikoyasuda Dec 10, 2024
7404a9d
Fix/Refactor: Eligibility Start (#2583)
machikoyasuda Dec 10, 2024
9edb893
reCAPTCHA: Enrollment Success, Logged Out (#2579)
machikoyasuda Dec 10, 2024
d881a12
chore(pre-commit): run autofix
machikoyasuda Dec 12, 2024
7a4e5fb
chore(pre-commit): run autofix (#2589)
machikoyasuda Dec 12, 2024
fa88233
feat(error-template): realign error template for 200 error, 400, 404,…
machikoyasuda Dec 11, 2024
e55fd29
feat(oauth-error): realign oauth system error page
machikoyasuda Dec 11, 2024
01112e9
feat(reenrollment-calfresh): realign template for reenrollment error …
machikoyasuda Dec 11, 2024
9a9c646
fix: remove unnecessary outer div, provided by base
machikoyasuda Dec 11, 2024
8a301c6
feat(enrollment-error): realign template, update css for enrollment s…
machikoyasuda Dec 11, 2024
2acaf46
feat(enrollment-retry): realign template for reenrollment retry error
machikoyasuda Dec 11, 2024
732f794
feat(elig-unverified): realign eligibility unverified error page
machikoyasuda Dec 11, 2024
f2f7358
refactor(templates): move log out button into nav-buttons
machikoyasuda Dec 11, 2024
a85e8d9
refactor(error): all error pages now extend error
machikoyasuda Dec 11, 2024
4e6eeab
refactor: rename error to error-base, for consistency
machikoyasuda Dec 11, 2024
5b91916
test(models): update test_tempate_path spec
machikoyasuda Dec 11, 2024
9ed5091
refactor(oauth-error): remove unnecessary button call, inherited from…
machikoyasuda Dec 11, 2024
46fd496
refactor(error-base): loading i18n not necessary
machikoyasuda Dec 12, 2024
2a69f17
refactor(error-base): remove redundant title call and use page-title …
machikoyasuda Dec 12, 2024
812446c
refactor(error-base): set sad bus icon as the default icon
machikoyasuda Dec 12, 2024
cb558f4
feat(help): realign Help page width, combine some divs
machikoyasuda Dec 9, 2024
54fb16f
fix: remove unnecessary class
machikoyasuda Dec 11, 2024
2a7d08f
reCAPTCHA: Help page (#2584)
machikoyasuda Dec 16, 2024
4c188bf
reCAPTCHA: Error pages (#2585)
machikoyasuda Dec 16, 2024
d81de3e
feat(elig-index): create recaptcha-text, add spanish, add to elig index
machikoyasuda Dec 11, 2024
8a5d4cd
refactor(form): put recaptcha link in form instead
machikoyasuda Dec 11, 2024
32c9297
fix(form): fix alignment of recaptcha, was slightly too wide
machikoyasuda Dec 11, 2024
7a81aab
fix(elig-confirm): form does not need to be wrapped in container/row
machikoyasuda Dec 11, 2024
d331ca6
feat(recaptcha-text): add text styling, add icon size styling
machikoyasuda Dec 11, 2024
129d108
fix(recaptcha-text): don't link the Google part, for En and Es
machikoyasuda Dec 11, 2024
128d28a
feat(recaptcha): hide the badge with CSS
machikoyasuda Dec 11, 2024
29dad70
fix(recaptcha-text): add mt-0 to reset margin-top from bootstrap
machikoyasuda Dec 11, 2024
7479af3
refactor: refactor form to allow for a mb-fix that shortens space und…
machikoyasuda Dec 11, 2024
5d34bb4
fix: update comment to proper classname
machikoyasuda Dec 11, 2024
9cfd2c6
refactor(css): use a footer style rather than negative margin hack
machikoyasuda Dec 11, 2024
a4e9b6f
refactor(css): variable-ize external link icon size
machikoyasuda Dec 16, 2024
1f2ee3e
fix(css): contain icon size
machikoyasuda Dec 16, 2024
87f40f7
docs: add clarifying comments
machikoyasuda Dec 17, 2024
b21f806
fix(recaptcha): use display none on badge
machikoyasuda Dec 17, 2024
986fc6f
fix(css): remove 24px footer margin from elig-confirm
machikoyasuda Dec 17, 2024
ec05326
fix: remove unnecessary class
machikoyasuda Dec 17, 2024
dce769c
fix(form): undo form refactoring for now
machikoyasuda Dec 18, 2024
14bcb1a
fix(unverified): set up unverified-base to be inherited by unverified…
machikoyasuda Dec 18, 2024
d8dd84d
chore: make messages
machikoyasuda Dec 18, 2024
2ef3421
fix(unverified): undo filename changes
machikoyasuda Dec 18, 2024
635c638
fix(unverified): create separate base for unverified agency cards, fi…
machikoyasuda Dec 19, 2024
6cb906f
fix(unverified): add back Spanish unverified error copy for Login/non…
machikoyasuda Dec 19, 2024
b4e56f5
fix(unverified): button goes back to form, not home
machikoyasuda Jan 2, 2025
1561cb5
reCAPTCHA: Fix Unverified error pages (#2597)
machikoyasuda Jan 2, 2025
69b7cc8
chore: merge feature branch
machikoyasuda Jan 3, 2025
18bea68
reCAPTCHA: Add reCAPTCHA text, hide flag on Elig Index, Elig Confirm …
machikoyasuda Jan 3, 2025
66dc6f8
feat(css): change 70px to 72px above h1
machikoyasuda Dec 11, 2024
abf22f7
refactor(base): refactor headline block to have col-lg-6 in it
machikoyasuda Dec 12, 2024
a2955f8
refactor(base): remove now unnecessary col-lg-8 wrapper in explanator…
machikoyasuda Dec 12, 2024
52e9a78
refactor(base): put headline, explanatory, inner-content in 1 div, al…
machikoyasuda Dec 12, 2024
baa0e84
refactor(index): remove the term 'landing' and use base instead, like…
machikoyasuda Dec 12, 2024
2597f54
refactor(logged-out): use inner-content instead of main-content
machikoyasuda Dec 12, 2024
937295f
refactor(base): remove unnecessary class, col-12
machikoyasuda Dec 12, 2024
9ff63af
chore: make messages
machikoyasuda Dec 12, 2024
607423b
chore: make messages again
machikoyasuda Dec 17, 2024
3361783
fix(elig-confirm): remove now unnecessary parent divs
machikoyasuda Dec 17, 2024
5a4b47f
refactor(elig-index): remove now unnecessary block
machikoyasuda Dec 17, 2024
ca93e1b
refactor(base): remove explanatory-text block
machikoyasuda Dec 17, 2024
0b5cb95
fix(error): remove extra col-md-6
machikoyasuda Jan 3, 2025
6962659
reCAPTCHA: Spacing and template refactor (#2588)
machikoyasuda Jan 6, 2025
9c8856f
Merge branch 'main' into refactor/recaptcha-copy
machikoyasuda Jan 6, 2025
6efa48e
fix(success): remove unused block
machikoyasuda Jan 6, 2025
ae1ecfc
fix(form): move form class call to the container; refactor admin css
machikoyasuda Jan 7, 2025
e966125
fix(admin): add 1rem margins/gaps
machikoyasuda Jan 7, 2025
c44320c
fix(aria): remove unnecessary redundant aria form declaration
machikoyasuda Jan 7, 2025
5bd26e9
refactor(admin): create css class for in person form styles to encapu…
machikoyasuda Jan 7, 2025
b9331eb
refactor(elig-verif): use eligveriform class to style the fields have…
machikoyasuda Jan 7, 2025
9c521cf
Fix: reCAPTCHA-related - Fix Admin form style regression (#2613)
machikoyasuda Jan 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions benefits/core/templates/core/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{% load i18n %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
Expand Down Expand Up @@ -70,22 +69,16 @@
{% endblock nav-buttons %}
<div class="container main-row">
<div class="row justify-content-center">
{% block headline %}
{% endblock headline %}
</div>
{% block explanatory-text-wrapper %}
<div class="col-lg-8">
{% block explanatory-text %}
{% endblock explanatory-text %}
<div class="col-lg-6">
{% block headline %}
{% endblock headline %}
{% block inner-content %}
{% endblock inner-content %}
</div>
{% endblock explanatory-text-wrapper %}
<div class="row justify-content-center">
{% block inner-content %}
{% endblock inner-content %}
</div>
{% block call-to-action %}
<div class="row d-flex justify-content-lg-end pt-8">
<div class="col-lg-3 offset-2 offset-sm-2 offset-lg-0 col-sm-8 col-8">
<div class="row justify-content-center pt-8">
<div class="col-lg-6">
{% block call-to-action-button %}
{% endblock call-to-action-button %}
</div>
Expand Down
15 changes: 3 additions & 12 deletions benefits/core/templates/core/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
{% block main-content %}
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-10">
<div class="col-lg-8">
<h1 class="text-center">{% translate "Help" %}</h1>
</div>
</div>

<div class="row justify-content-center">
<div class="col-md-8 col-10">
<h2 class="h2-sm pt-4 pt-lg-8" id="what-is-cal-itp">{% translate "What is Cal-ITP Benefits?" %}</h2>
<p class="pt-2 pt-lg-4">
{% blocktranslate trimmed %}
Expand Down Expand Up @@ -137,11 +132,7 @@ <h2 class="h2-sm pt-4 pt-lg-8" id="questions">{% translate "Questions?" %}</h2>
provider.
{% endblocktranslate %}
</p>
</div>
</div>

<div class="row justify-content-center">
<div class="col-md-8 col-10">
{% if agency %}
{% include "core/includes/agency-links.html" %}
{% else %}
Expand All @@ -152,8 +143,8 @@ <h2 class="h2-sm pt-4 pt-lg-8" id="questions">{% translate "Questions?" %}</h2>
</div>
</div>

<div class="row pt-4 pt-lg-8">
<div class="col-lg-2 offset-lg-10 col-8 offset-2">
<div class="row justify-content-center pt-4 pt-lg-8">
<div class="col-12 col-lg-6">
{% translate "Go Back" as button_text %}
{% include "core/includes/button--origin.html" with button_text=button_text %}
</div>
Expand Down
8 changes: 8 additions & 0 deletions benefits/core/templates/core/includes/eligibility-item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<li>
<h2 class="h3 pb-1">
{% block heading %}
{% endblock heading %}
</h2>
{% block body %}
{% endblock body %}
</li>
57 changes: 26 additions & 31 deletions benefits/core/templates/core/includes/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,35 @@

{% url form.action_url as form_action %}

<form id="{{ form.id }}" action="{{ form_action }}" method="{{ form.method | default:"post" | upper }}" role="form">
<form id="{{ form.id }}" action="{{ form_action }}" method="{{ form.method | default:"post" | upper }}">
{% csrf_token %}

<div class="row form-container justify-content-center">
<div class="{{ form.classes }}">
{% for field in form %}
<div class="row form-group mb-0">
<div class="col-12">
{# djlint:off #}
{% if field.label %}
<label for="{{ field.id_for_label }}" class="form-control-label">{{ field.label }}{% if field.field.required %}<span class="required-label text-body">*</span>{% endif %}
</label>
{% endif %}
{# djlint:on #}

{{ field }}

{% if field.help_text %}<small class="d-block mt-2 pt-1 form-text text-body">{{ field.help_text }}</small>{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class="form-field-container {{ form.classes }}">
{% for field in form %}
<div class="form-group mb-0">
{# djlint:off #}
{% if field.label %}
<label for="{{ field.id_for_label }}" class="form-control-label">{{ field.label }}{% if field.field.required %}<span class="required-label text-body">*</span>{% endif %}
</label>
{% endif %}
{# djlint:on #}

{{ field }}

{% if field.help_text %}<small class="d-block mt-2 pt-1 form-text text-body">{{ field.help_text }}</small>{% endif %}
</div>
{% endfor %}
</div>

{% if form.submit_value %}
<div class="row d-flex justify-content-lg-end pt-8">
<div class="col-lg-3 offset-2 offset-sm-2 offset-lg-0 col-sm-8 col-8">
<button class="btn btn-lg btn-primary spinner-hidden d-flex justify-content-center align-items-center"
data-action="submit"
type="submit"
form="{{ form.id }}">
<span class="btn-text">{{ form.submit_value }}</span>
<span class="spinner-border spinner-border-sm"></span>
</button>
</div>
<div class="pt-8">
<button class="btn btn-lg btn-primary spinner-hidden d-flex justify-content-center align-items-center"
data-action="submit"
type="submit"
form="{{ form.id }}">
<span class="btn-text">{{ form.submit_value }}</span>
<span class="spinner-border spinner-border-sm"></span>
</button>
</div>
{% endif %}

Expand Down Expand Up @@ -94,6 +88,8 @@
{% endcomment %}
<input type="hidden" name="{{ request.recaptcha.data_field }}" value="">

<div class="pt-8">{% include "core/includes/recaptcha-text.html" %}</div>

<script nonce="{{ request.csp_nonce }}">
function recaptchaSubmit($event) {
// checks the validity of the form. Return if invalid; HTML5 validation errors should display
Expand Down Expand Up @@ -121,6 +117,5 @@
$("button[type=submit]", "#{{ form.id }}").on("click", recaptchaSubmit);
</script>
{% endif %}

</form>
{% endif %}
16 changes: 0 additions & 16 deletions benefits/core/templates/core/includes/media-item.html

This file was deleted.

7 changes: 7 additions & 0 deletions benefits/core/templates/core/includes/recaptcha-text.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% load i18n %}

<p class="form-text text-body mt-0">
{% blocktranslate trimmed %}
This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Policy</a> and <a href="https://policies.google.com/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a> apply.
{% endblocktranslate %}
</p>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "core/landing.html" %}
{% extends "core/index-base.html" %}
{% load i18n %}

{% block title %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/core/templates/core/index--cst.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "core/agency-index.html" %}
{% extends "core/index--agency-base.html" %}
{% load i18n %}

{% block headline %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/core/templates/core/index--mst.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "core/agency-index.html" %}
{% extends "core/index--agency-base.html" %}
{% load i18n %}

{% block headline %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/core/templates/core/index--nevco.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "core/agency-index.html" %}
{% extends "core/index--agency-base.html" %}
{% load i18n %}

{% block headline %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/core/templates/core/index--sacrt.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "core/agency-index.html" %}
{% extends "core/index--agency-base.html" %}
{% load i18n %}

{% block headline %}
Expand Down
3 changes: 1 addition & 2 deletions benefits/core/templates/core/index--sbmtd.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "core/agency-index.html" %}

{% extends "core/index--agency-base.html" %}
{% load i18n %}

{% block headline %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/core/templates/core/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "core/landing.html" %}
{% extends "core/index-base.html" %}
{% load i18n %}

{% block title %}
Expand Down
16 changes: 4 additions & 12 deletions benefits/core/templates/core/logged-out.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@
{% translate "Logged out" %}
{% endblock page-title %}

{% block main-content %}
<div class="container">
<div class="row justify-content-lg-center">
<div class="col-md-6">
<h1 class="h2 text-center">
<span class="d-block pb-lg-8 pb-5">{% include "core/includes/icon.html" with name="happybus" %}</span>
{% translate "You have successfully logged out. Thank you for using Cal-ITP Benefits!" %}
</h1>
</div>
</div>
</div>
{% endblock main-content %}
{% block inner-content %}
<div class="py-4 mt-5 text-center">{% include "core/includes/icon.html" with name="happybus" %}</div>
<h1 class="h2 pt-0">{% translate "You have successfully logged out. Thank you for using Cal-ITP Benefits!" %}</h1>
{% endblock inner-content %}
6 changes: 3 additions & 3 deletions benefits/core/templates/core/widgets/flow-radio-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

{% with id=widget.attrs.id %}

<label for="{{ id }}" class="pb-4 h2">{% translate "Which transit benefit would you like to enroll in?" %}</label>
<label for="{{ id }}" class="h2">{% translate "Which transit benefit would you like to enroll in?" %}</label>

<div {% if id %}id="{{ id }}"{% endif %} class="ps-3 ps-md-0 ps-lg-0 offset-md-1 offset-lg-1 radio-container">
<div {% if id %}id="{{ id }}"{% endif %}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 👏

This went from really complicated to really clean 👍

{% for group, options, index in widget.optgroups %}
{% if group %}
<div>
Expand All @@ -13,7 +13,7 @@
{% endif %}

{% for option in options %}
<div class="radio-input-group d-flex">{% include option.template_name with widget=option %}</div>
<div class="gap-4 gap-md-3 d-flex pt-4">{% include option.template_name with widget=option %}</div>
{% endfor %}

{% if group %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .middleware import pageview_decorator, index_or_agencyindex_origin_decorator, user_error

TEMPLATE_INDEX = "core/index.html"
TEMPLATE_AGENCY = "core/agency-index.html"
TEMPLATE_AGENCY = "core/index--agency-base.html"
TEMPLATE_HELP = "core/help.html"
TEMPLATE_LOGGED_OUT = "core/logged-out.html"

Expand Down
3 changes: 1 addition & 2 deletions benefits/eligibility/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def __init__(self, agency: models.TransitAgency, *args, **kwargs):
super().__init__(*args, **kwargs)
flows = agency.enrollment_flows.filter(supported_enrollment_methods__contains=models.EnrollmentMethods.DIGITAL)

self.classes = "col-lg-8"
# second element is not used since we render the whole label using selection_label_template,
# therefore set to None
flow_field = self.fields["flow"]
Expand Down Expand Up @@ -109,8 +108,8 @@ def __init__(
self.title = title
self.headline = headline
self.blurb = blurb
self.classes = "eligibility-verification-form"

self.classes = "col-lg-6"
sub_widget = widgets.FormControlTextInput(placeholder=sub_placeholder)
if sub_pattern:
sub_widget.attrs.update({"pattern": sub_pattern})
Expand Down
23 changes: 7 additions & 16 deletions benefits/eligibility/templates/eligibility/confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,14 @@
{% endblock nav-buttons %}

{% block headline %}
<div class="col-lg-6">
<h1>{{ form.headline }}</h1>
</div>
<h1>{{ form.headline }}</h1>
{% endblock headline %}

{% block explanatory-text-wrapper %}
<div class="row justify-content-center">
<div class="col-lg-6">
{% block explanatory-text %}
<p class="pt-4 pb-4">{{ form.blurb }}</p>
{% endblock explanatory-text %}
</div>
</div>
{% endblock explanatory-text-wrapper %}

{% block inner-content %}
<div class="container">
<div class="row">{% include "core/includes/form.html" with form=form %}</div>
</div>
<p class="pt-4 pb-4">{{ form.blurb }}</p>
{% include "core/includes/form.html" with form=form %}
{% endblock inner-content %}

{% comment %} Override with empty block to prevent rendering empty divs {% endcomment %}
{% block call-to-action %}
{% endblock call-to-action %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% extends "core/includes/eligibility-item.html" %}
{% load i18n %}

{% block heading %}
{% translate "Your contactless card details" %}
{% endblock heading %}

{% block body %}
<p>
{% translate "Your contactless card must be a debit or credit card by Visa or Mastercard." %}
{% translate "Learn more about contactless cards" as text %}
{% include "core/includes/modal-trigger.html" with modal="modal--contactless" text=text period=True %}
</p>

{% include "eligibility/includes/modal--contactless.html" with id="modal--contactless" 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 body %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "core/includes/eligibility-item.html" %}

{% load i18n %}

{% block heading %}
{% translate "Your current Agency Card number" %}
{% endblock heading %}

{% block body %}
<p>{% translate "You do not need to have your physical CST Agency Card, but you will need to know the number." %}</p>
{% endblock body %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% extends "core/includes/eligibility-item.html" %}

{% load i18n %}

{% block heading %}
{% translate "A Login.gov account with identity verification" %}
{% endblock heading %}

{% block body %}
<p>
{% translate "You will be able to create an account using your email address if you do not already have one. We use your Login.gov account to verify your identity." %}
{% translate "Learn more about identity verification" as text %}
{% include "core/includes/modal-trigger.html" with modal="modal--identity-verification" text=text period=True %}
</p>
<p>{% translate "For this process you will need:" %}</p>
<ul class="list-disc ms-lg-5 ms-0">
<li>{% translate "Your state-issued ID card" %}</li>
<li>{% translate "Your Social Security number" %}</li>
<li>{% translate "A phone number with a phone plan associated with your name" %}</li>
</ul>

{% include "eligibility/includes/modal--login-gov-start-help.html" with size="modal-lg" id="modal--identity-verification" header="p-md-2 p-3" body="pb-md-3 mb-md-3 mx-md-3 py-0 pt-0 absolute-top" %}
{% endblock body %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends "core/includes/eligibility-item.html" %}

{% load i18n %}

{% block heading %}
{% translate "An online account with Medicare.gov" %}
{% endblock heading %}

{% block body %}
<p>
{% translate "If you do not have an account you will be able to create one using your red, white, and blue Medicare card. We use your Medicare.gov account to verify you qualify." %}
</p>
{% endblock body %}
Loading
Loading