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

Chore: Help copy - agency card #1560

Merged
merged 4 commits into from
Jul 26, 2023
Merged
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions benefits/core/context_processors.py
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
def _agency_context(agency):
return {
"eligibility_index_url": agency.eligibility_index_url,
"help_template": agency.help_template,
"info_url": agency.info_url,
"long_name": agency.long_name,
"phone": agency.phone,
3 changes: 2 additions & 1 deletion benefits/core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.3 on 2023-07-14 04:51
# Generated by Django 4.2.3 on 2023-07-26 21:42

from django.db import migrations, models
import django.db.models.deletion
@@ -110,6 +110,7 @@ class Migration(migrations.Migration):
("jws_signing_alg", models.TextField()),
("eligibility_index_template", models.TextField()),
("transit_type", models.TextField()),
("help_template", models.TextField(null=True)),
("eligibility_types", models.ManyToManyField(to="core.eligibilitytype")),
("eligibility_verifiers", models.ManyToManyField(to="core.eligibilityverifier")),
(
1 change: 1 addition & 0 deletions benefits/core/migrations/0002_data.py
Original file line number Diff line number Diff line change
@@ -258,6 +258,7 @@ def load_data(app, *args, **kwargs):
payment_processor=mst_payment_processor,
eligibility_index_template="eligibility/index--mst.html",
transit_type=_("agency.variables.mst.transit_type"),
help_template="core/includes/help--mst.html",
)
mst_agency.eligibility_types.set([mst_senior_type, mst_veteran_type, mst_courtesy_card_type])
mst_agency.eligibility_verifiers.set([mst_oauth_claims_verifier, mst_veteran_verifier, mst_courtesy_card_verifier])
1 change: 1 addition & 0 deletions benefits/core/models.py
Original file line number Diff line number Diff line change
@@ -203,6 +203,7 @@ class TransitAgency(models.Model):
jws_signing_alg = models.TextField()
eligibility_index_template = models.TextField()
transit_type = models.TextField()
help_template = models.TextField(null=True)

def __str__(self):
return self.long_name
5 changes: 3 additions & 2 deletions benefits/core/templates/core/help.html
Original file line number Diff line number Diff line change
@@ -48,8 +48,9 @@ <h2 class="pt-8" id="login-gov-verify">{% translate "core.pages.help.login_gov_v
<p class="pt-4">{% translate "eligibility.pages.start.senior.help.p[3]" %}</p>
<p class="pt-4">{% translate "eligibility.pages.start.senior.help.p[4]" %}</p>

<h2 class="pt-8" id="mst-courtesy-card">{% translate "core.pages.help.mst_courtesy_card" %}</h2>
<p class="pt-4">{% translate "core.pages.help.mst_courtesy_card.p[0]" %}</p>
{% if agency and agency.help_template %}
{% include agency.help_template %}
{% endif %}

<h2 class="pt-8" id="littlepay">{% translate "core.pages.help.littlepay" %}</h2>
<p class="pt-4">{% translate "core.pages.help.littlepay.p[0]" %}</p>
4 changes: 4 additions & 0 deletions benefits/core/templates/core/includes/help--mst.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% load i18n %}

<h2 class="pt-8" id="mst-courtesy-card">{% translate "core.pages.help.mst_courtesy_card" %}</h2>
<p class="pt-4">{% translate "core.pages.help.mst_courtesy_card.p[0]" %}</p>
26 changes: 13 additions & 13 deletions benefits/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-07-25 17:28+0000\n"
"POT-Creation-Date: 2023-07-26 20:48+0000\n"
"Language: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -174,18 +174,6 @@ msgstr ""
"target=\"_blank\" rel=\"noopener noreferrer\">more information on identity "
"verification.</a>"

msgid "core.pages.help.mst_courtesy_card"
msgstr "What is a Courtesy Card?"

msgid "core.pages.help.mst_courtesy_card.p[0]"
msgstr ""
"Courtesy Cards are issued by Monterey-Salinas Transit to riders who qualify "
"for a number of discounted-fare programs. This website is a demonstration "
"tool to support the Courtesy Card program. This benefit may need to be "
"renewed in the future based on the expiration date of the Courtesy Card. "
"Learn more at the <a href='https://mst.org/riders-guide/how-to-ride/courtesy-"
"card/' target=\"_blank\" rel=\"noopener noreferrer\">MST Riders Guide</a>."

msgid "core.pages.help.littlepay"
msgstr "What is Littlepay?"

@@ -226,6 +214,18 @@ msgstr "Return Home"
msgid "core.buttons.previous_page"
msgstr "Previous Page"

msgid "core.pages.help.mst_courtesy_card"
msgstr "What is a Courtesy Card?"

msgid "core.pages.help.mst_courtesy_card.p[0]"
msgstr ""
"Courtesy Cards are issued by Monterey-Salinas Transit to riders who qualify "
"for a number of discounted-fare programs. This website is a demonstration "
"tool to support the Courtesy Card program. This benefit may need to be "
"renewed in the future based on the expiration date of the Courtesy Card. "
"Learn more at the <a href='https://mst.org/riders-guide/how-to-ride/courtesy-"
"card/' target=\"_blank\" rel=\"noopener noreferrer\">MST Riders Guide.</a>"

msgid "core.buttons.senior.signout"
msgstr "Sign out of Login.gov"

28 changes: 14 additions & 14 deletions benefits/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-07-25 17:28+0000\n"
"POT-Creation-Date: 2023-07-26 20:48+0000\n"
"Language: Español\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -177,19 +177,6 @@ msgstr ""
"help/' target=\"_blank\" rel=\"noopener noreferrer\">more information on "
"identity verification.</a>"

msgid "core.pages.help.mst_courtesy_card"
msgstr "¿Qué es una Tarjeta de Cortesía?"

msgid "core.pages.help.mst_courtesy_card.p[0]"
msgstr ""
"Las Tarjetas de Cortesía son emitidas por Monterey-Salinas Transit a "
"pasajeros que califican para varios programas de tarifas con descuento. Este "
"sitio web es una herramienta de demostración para apoyar el programa de "
"Tarjeta de Cortesía. Es posible que este beneficio deba renovarse en el "
"futuro según la fecha de vencimiento de la Tarjeta de Cortesía. Obtenga más "
"información <a href='https://mst.org/riders-guide/how-to-ride/courtesy-"
"card/' target=\"_blank\" rel=\"noopener noreferrer\">MST Riders Guide</a>."

msgid "core.pages.help.littlepay"
msgstr "¿Qué es Littlepay?"

@@ -230,6 +217,19 @@ msgstr "Regresar a la Página Principal"
msgid "core.buttons.previous_page"
msgstr "Página Anterior"

msgid "core.pages.help.mst_courtesy_card"
msgstr "¿Qué es una Tarjeta de Cortesía?"

msgid "core.pages.help.mst_courtesy_card.p[0]"
msgstr ""
"Las Tarjetas de Cortesía son emitidas por Monterey-Salinas Transit a "
"pasajeros que califican para varios programas de tarifas con descuento. Este "
"sitio web es una herramienta de demostración para apoyar el programa de "
"Tarjeta de Cortesía. Es posible que este beneficio deba renovarse en el "
"futuro según la fecha de vencimiento de la Tarjeta de Cortesía. Obtenga más "
"información <a href='https://mst.org/riders-guide/how-to-ride/courtesy-"
"card/' target=\"_blank\" rel=\"noopener noreferrer\">MST Riders Guide.</a>"

msgid "core.buttons.senior.signout"
msgstr "Cierre sesión de Login.gov"