-
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.
- Loading branch information
Showing
61 changed files
with
1,248 additions
and
405 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Check for up-to-date Django migrations and messages | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-migrations-and-messages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install system packages | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y gettext | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: .github/workflows/.python-version | ||
cache: pip | ||
cache-dependency-path: "**/pyproject.toml" | ||
|
||
- name: Install Python dependencies | ||
run: pip install -e .[dev,test] | ||
|
||
- name: Run ./bin/makemigrations.sh | ||
run: | | ||
if ./bin/makemigrations.sh | grep -q 'No changes detected'; | ||
then | ||
exit 0; | ||
else | ||
exit 1; | ||
fi | ||
- name: Run ./bin/makemessages.sh | ||
run: | | ||
./bin/makemessages.sh | ||
set -x # show commands | ||
git add benefits | ||
# message files are up-to-date if the only differences are from the updated timestamp | ||
if echo $(git diff --cached --shortstat) | grep -q '2 files changed, 2 insertions(+), 2 deletions(-)'; | ||
then | ||
exit 0; | ||
else | ||
exit 1; | ||
fi |
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
22 changes: 22 additions & 0 deletions
22
benefits/core/migrations/0011_move_enrollment_success_template_field.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,22 @@ | ||
# Generated by Django 5.0.3 on 2024-05-17 19:49 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0010_alter_secret_name_field_blank"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="transitagency", | ||
name="enrollment_success_template", | ||
), | ||
migrations.AddField( | ||
model_name="eligibilitytype", | ||
name="enrollment_success_template", | ||
field=models.TextField(default="enrollment/success.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
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
21 changes: 21 additions & 0 deletions
21
benefits/enrollment/templates/enrollment/success--mst-courtesy-card.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,21 @@ | ||
{% extends "enrollment/success.html" %} | ||
{% load i18n %} | ||
|
||
{% block headline-message %} | ||
{% blocktranslate trimmed %} | ||
You can now use your contactless card to tap to ride with a reduced fare! | ||
{% endblocktranslate %} | ||
{% endblock headline-message %} | ||
|
||
{% block success-message %} | ||
{% blocktranslate trimmed %} | ||
Your contactless card is now enrolled in an MST Courtesy Card transit benefit. When boarding an MST bus, tap this card and you will be | ||
charged a reduced fare. You will need to re-enroll if you choose to change the card you use to pay for transit service. | ||
{% endblocktranslate %} | ||
{% endblock success-message %} | ||
|
||
{% block thank-you-message %} | ||
{% blocktranslate trimmed %} | ||
You were not charged anything today. Thank you for using Cal-ITP Benefits! | ||
{% endblocktranslate %} | ||
{% endblock thank-you-message %} |
Oops, something went wrong.