Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cal-itp/benefits
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 03e76e6ae3f47ec3e36d90e8f091247718a7e1a7
Choose a base ref
..
head repository: cal-itp/benefits
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2fcc2a200927b4f88995fddcdd691eaeb4b18077
Choose a head ref
8 changes: 4 additions & 4 deletions benefits/core/migrations/0002_data.py
Original file line number Diff line number Diff line change
@@ -151,7 +151,7 @@ def load_data(app, *args, **kwargs):
name=os.environ.get("MST_OAUTH_VERIFIER_NAME", "OAuth claims via Login.gov (MST)"),
eligibility_type=mst_senior_type,
auth_provider=senior_auth_provider,
selection_label_template="core/includes/selection_label__login_gov.html",
selection_label_template="core/includes/selection-label--senior.html",
start_template="eligibility/start__login_gov.html",
unverified_title=_("eligibility.pages.unverified.title"),
unverified_blurb=_("eligibility.pages.unverified.p[0]"),
@@ -161,7 +161,7 @@ def load_data(app, *args, **kwargs):
name=os.environ.get("MST_VETERAN_VERIFIER_NAME", "VA.gov - Veteran (MST)"),
eligibility_type=mst_veteran_type,
auth_provider=veteran_auth_provider,
selection_label_template="core/includes/selection_label__mst_veteran.html",
selection_label_template="core/includes/selection-label--veteran.html",
start_template="eligibility/start__veteran.html",
unverified_title=_("eligibility.pages.unverified.title"),
unverified_blurb=_("eligibility.pages.unverified.p[0]"),
@@ -178,7 +178,7 @@ def load_data(app, *args, **kwargs):
jwe_encryption_alg=os.environ.get("COURTESY_CARD_VERIFIER_JWE_ENCRYPTION_ALG", "RSA-OAEP"),
jws_signing_alg=os.environ.get("COURTESY_CARD_VERIFIER_JWS_SIGNING_ALG", "RS256"),
auth_provider=None,
selection_label_template="core/includes/selection_label__mst_courtesy_card.html",
selection_label_template="core/includes/selection-label--mst-courtesy-card.html",
start_template="eligibility/start__mst_courtesy_card.html",
form_title=_("eligibility.pages.confirm.mst_cc.title"),
form_headline=_("eligibility.pages.confirm.mst_cc.headline"),
@@ -201,7 +201,7 @@ def load_data(app, *args, **kwargs):
name=os.environ.get("SACRT_OAUTH_VERIFIER_NAME", "OAuth claims via Login.gov (SacRT)"),
eligibility_type=sacrt_senior_type,
auth_provider=senior_auth_provider,
selection_label_template="core/includes/selection_label__login_gov.html",
selection_label_template="core/includes/selection-label--senior.html",
start_template="eligibility/start__login_gov.html",
unverified_title=_("eligibility.pages.unverified.title"),
unverified_blurb=_("eligibility.pages.unverified.p[0]"),
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends "core/includes/selection-label.html" %}
{% load i18n %}

{% block label %}
{% translate "eligibility.pages.index.mst_courtesy_card.label" %}
{% endblock label %}

{% block description %}
{% translate "eligibility.pages.index.mst_courtesy_card.description" %}
{% endblock description %}
10 changes: 10 additions & 0 deletions benefits/core/templates/core/includes/selection-label--senior.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends "core/includes/selection-label.html" %}
{% load i18n %}

{% block label %}
{% translate "eligibility.pages.index.senior.label" %}
{% endblock label %}

{% block description %}
{% translate "eligibility.pages.index.senior.description" %}
{% endblock description %}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "core/includes/verifier_radio_select_label.html" %}
{% extends "core/includes/selection-label.html" %}
{% load i18n %}

{% block label %}

This file was deleted.

This file was deleted.

20 changes: 9 additions & 11 deletions benefits/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -275,24 +275,22 @@ msgstr ""
"To function properly, this website requires a browser that supports "
"JavaScript. Please enable JavaScript for this website and"

msgid "eligibility.pages.index.login_gov.label"
msgstr "I am 65 years of age or older"

msgid "eligibility.pages.index.login_gov.description"
msgstr ""
"You must be 65 years or older. This benefit does not expire, but you may "
"need to renew. Using this benefit means your new transit fare is half of the "
"standard fare."

msgid "eligibility.pages.index.mst_cc.label"
msgid "eligibility.pages.index.mst_courtesy_card.label"
msgstr "I have an MST Courtesy Card"

msgid "eligibility.pages.index.mst_cc.description"
msgid "eligibility.pages.index.mst_courtesy_card.description"
msgstr ""
"This option is for people who have a current Courtesy Card or an MST RIDES "
"Eligibility card. This benefit may need to be renewed in the future. Using "
"this benefit means your new transit fare is half of the standard fare."

msgid "eligibility.pages.index.senior.label"
msgstr "Older Adult"

msgid "eligibility.pages.index.senior.description"
msgstr ""
"You must be 65 years or older. You will need to verify your identity with"

msgid "eligibility.pages.index.veteran.label"
msgstr "US Veteran"

19 changes: 8 additions & 11 deletions benefits/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -283,25 +283,22 @@ msgstr ""
"Para funcionar correctamente, este sitio web requiere un navegador que "
"admita JavaScript. Por favor, active JavaScript por este sitio web y"

msgid "eligibility.pages.index.login_gov.label"
msgstr "Tengo 65 años de edad o más"

msgid "eligibility.pages.index.login_gov.description"
msgstr ""
"Usted debe de tener 65 años o más. Este beneficio no caduca, pero es posible "
"que deba renovarlo. Usando este beneficio significa que su nueva tarifa de "
"tránsito es la mitad de la tarifa estándar."

msgid "eligibility.pages.index.mst_cc.label"
msgid "eligibility.pages.index.mst_courtesy_card.label"
msgstr "Tengo una Tarjeta de Cortesía de MST"

msgid "eligibility.pages.index.mst_cc.description"
msgid "eligibility.pages.index.mst_courtesy_card.description"
msgstr ""
"Esta opción es para personas que tienen una Tarjeta de Cortesía actual o una "
"tarjeta de elegibilidad de Paratránsito de MST RIDES. Es posible que este "
"beneficio deba renovarse en el futuro. Usar este beneficio significa que su "
"nueva tarifa de tránsito es la mitad de la tarifa estándar."

msgid "eligibility.pages.index.senior.label"
msgstr "Adulto mayor"

msgid "eligibility.pages.index.senior.description"
msgstr "Debe tener 65 años o más. Deberá verificar su identidad con"

msgid "eligibility.pages.index.veteran.label"
msgstr "TODO: US Veteran"

2 changes: 1 addition & 1 deletion tests/pytest/conftest.py
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ def model_EligibilityVerifier(model_PemData, model_EligibilityType):
api_auth_key="secret-key",
eligibility_type=model_EligibilityType,
public_key=model_PemData,
selection_label_template="core/includes/verifier_radio_select_label.html",
selection_label_template="core/includes/selection-label.html",
form_title="Form",
form_headline="Form",
form_blurb="Form Blurb",